S
Stan Brown
My backup program requires two services to be running when I do a
backup. Naturally, I want those services not to be running at other
times. So I created the following batch file:
1. sc start afcdpsrv
2. sc start AcrSch2Svc
3. start /wait "C:\Program Files (x86)\Acronis\TrueImageHome
\TrueImageLauncher.exe"
4. sc stop afcdpsrv
5. sc stop AcrSch2Svc
(Line numbers are for reference and don't appear in the file.)
I've got two problems, which I'm hoping someone can help with. I
opened a command prompt with elevated privilege (yes, I got the
black-screen warning, so I know it worked), and ran the batch file.
A. Lines 1 and 2 show in the display that start is *pending*. And
when I check with SERVICES.MSC they are indeed stopped. (The service
names came from the Properties dialog in SERVICES.MSC.)
B. Line 3 opened a new command prompt but did not start the program.
It's hard to believe I could screw up a START command, but obviously
I have. I can't see my mistake, though. (The stuff in quotes was
copy/pasted from the Target box in the shortcut, so I do know that
it's correct.)
Thanks to any who can help!
backup. Naturally, I want those services not to be running at other
times. So I created the following batch file:
1. sc start afcdpsrv
2. sc start AcrSch2Svc
3. start /wait "C:\Program Files (x86)\Acronis\TrueImageHome
\TrueImageLauncher.exe"
4. sc stop afcdpsrv
5. sc stop AcrSch2Svc
(Line numbers are for reference and don't appear in the file.)
I've got two problems, which I'm hoping someone can help with. I
opened a command prompt with elevated privilege (yes, I got the
black-screen warning, so I know it worked), and ran the batch file.
A. Lines 1 and 2 show in the display that start is *pending*. And
when I check with SERVICES.MSC they are indeed stopped. (The service
names came from the Properties dialog in SERVICES.MSC.)
B. Line 3 opened a new command prompt but did not start the program.
It's hard to believe I could screw up a START command, but obviously
I have. I can't see my mistake, though. (The stuff in quotes was
copy/pasted from the Target box in the shortcut, so I do know that
it's correct.)
Thanks to any who can help!