Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-21-2007, 01:40 AM
Yandos
Newsgroup Contributor
 
Posts: n/a
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-21-2007, 01:40 AM
  #2 (permalink)  
Old 05-21-2007, 09:30 AM
Mark F.
Newsgroup Contributor
 
Posts: n/a
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 05-22-2007, 04:20 AM
Code-Curious Mom
Newsgroup Contributor
 
Posts: n/a
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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 05-23-2007, 01:00 AM
Yandos
Newsgroup Contributor
 
Posts: n/a
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Wait is Over! Alias Windows Vista 51 04-29-2008 09:00 AM
Please wait...... (New Thread) rmo555@cox.net Windows XP 8 02-23-2008 08:20 AM
I would wait if I were you ukspaceman@gmail.com Windows XP 8 07-22-2007 05:20 PM
RE: Should I wait on SP2? confused shortie 2 Windows XP 3 04-10-2007 05:15 AM
Q1 - I have to wait LPH UMPC General Chat 0 11-10-2006 02:27 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 01:49 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0