HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-21-2007, 09:29 AM
Yandos
 
Posts: n/a
Default start /wait does not wait :(

Hi,

I have the batch file which is executed every half an hour on a server to do some backups:

-----8<-----
@echo off
echo compress1
C:\WINDOWS\system32\cmd.exe /c start "zip" /wait /b /low "C:\Program Files\7-Zip\7z.exe" a -t7z "-m0
=PPMd" "-mmem=32m" "-mo=8" "-mhe=on" -- backup1.7z "c:\dir1\*.*"
echo compress2
C:\WINDOWS\system32\cmd.exe /c start "zip" /wait /b /low "C:\Program Files\7-Zip\7z.exe" a -t7z "-m0
=PPMd" "-mmem=32m" "-mo=8" "-mhe=on" -- backup2.7z "c:\dir2\*.*"
ping 127.0.0.1 -n 100
echo do something...
pause
-----8<-----

7z.exe (compress program) eats too much cpu, so I need to run it as a low priority task to preserve
computer response for other tasks. It is executed as low priority task, BUT it does not wait for 7z.exe's
end. What's wrong with my batch?

Thank you in advance.

Y.
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 05-21-2007, 05:27 PM
Mark F.
 
Posts: n/a
Default Re: start /wait does not wait :(


"Yandos" <fakemail@fakeisp.com> wrote in message
news:f2rl94$3bj$1@aioe.org...
> Hi,
>
> I have the batch file which is executed every half an hour on a server to
> do some backups:
>
> -----8<-----
> @echo off
> echo compress1
> C:\WINDOWS\system32\cmd.exe /c start "zip" /wait /b /low "C:\Program
> Files\7-Zip\7z.exe" a -t7z "-m0
> =PPMd" "-mmem=32m" "-mo=8" "-mhe=on" -- backup1.7z "c:\dir1\*.*"
> echo compress2
> C:\WINDOWS\system32\cmd.exe /c start "zip" /wait /b /low "C:\Program
> Files\7-Zip\7z.exe" a -t7z "-m0
> =PPMd" "-mmem=32m" "-mo=8" "-mhe=on" -- backup2.7z "c:\dir2\*.*"
> ping 127.0.0.1 -n 100
> echo do something...
> pause
> -----8<-----
>
> 7z.exe (compress program) eats too much cpu, so I need to run it as a low
> priority task to preserve
> computer response for other tasks. It is executed as low priority task,
> BUT it does not wait for 7z.exe's
> end. What's wrong with my batch?
>
> Thank you in advance.
>
> Y.


Try posting to: alt.msdos.batch.nt

Mark


Reply With Quote
  #3  
Old 05-22-2007, 12:15 PM
Code-Curious Mom
 
Posts: n/a
Default Re: start /wait does not wait :(


"Mark F." <reply2group@nospam.com> wrote in message
news:4651c86b$0$9951$4c368faf@roadrunner.com...
>
> "Yandos" <fakemail@fakeisp.com> wrote in message
> news:f2rl94$3bj$1@aioe.org...
>> Hi,
>>
>> I have the batch file which is executed every half an hour on a server to
>> do some backups:
>>
>> -----8<-----
>> @echo off
>> echo compress1
>> C:\WINDOWS\system32\cmd.exe /c start "zip" /wait /b /low "C:\Program
>> Files\7-Zip\7z.exe" a -t7z "-m0
>> =PPMd" "-mmem=32m" "-mo=8" "-mhe=on" -- backup1.7z "c:\dir1\*.*"
>> echo compress2
>> C:\WINDOWS\system32\cmd.exe /c start "zip" /wait /b /low "C:\Program
>> Files\7-Zip\7z.exe" a -t7z "-m0
>> =PPMd" "-mmem=32m" "-mo=8" "-mhe=on" -- backup2.7z "c:\dir2\*.*"
>> ping 127.0.0.1 -n 100
>> echo do something...
>> pause
>> -----8<-----
>>
>> 7z.exe (compress program) eats too much cpu, so I need to run it as a low
>> priority task to preserve
>> computer response for other tasks. It is executed as low priority task,
>> BUT it does not wait for 7z.exe's
>> end. What's wrong with my batch?
>>
>> Thank you in advance.
>>
>> Y.

>
> Try posting to: alt.msdos.batch.nt
>
> Mark


Or microsoft.public.win2000.cmdprompt.admin
Mention that you are using XP, but most of this stuff is done the same way
on both OS.


Reply With Quote
  #4  
Old 05-23-2007, 08:54 AM
Yandos
 
Posts: n/a
Default Re: start /wait does not wait :(

"Code-Curious Mom" <none@NG.invalid> wrote in
news:#ed8aKGnHHA.4624@TK2MSFTNGP04.phx.gbl:

>
> "Mark F." <reply2group@nospam.com> wrote in message
> news:4651c86b$0$9951$4c368faf@roadrunner.com...
>>
>> Try posting to: alt.msdos.batch.nt
>>
>> Mark

>
> Or microsoft.public.win2000.cmdprompt.admin
> Mention that you are using XP, but most of this stuff is done the same
> way on both OS.
>
>


Thanks guys, will try both groups. Y.
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sony H5 or Do I Wait for the H7? brn2rn75@mindspring.com Digital Photo 2 04-18-2007 12:48 PM


All times are GMT. The time now is 03:49 PM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger