Gaming Do 2 things at once with bat files

  • Thread starter Thread starter myuusmeow
  • Start date Start date
  • Views Views 1,570
  • Replies Replies 4

myuusmeow

Well-Known Member
Member
Joined
Jun 24, 2007
Messages
1,646
Reaction score
2
Trophies
1
Website
google.com
XP
367
Country
United States
Code:
explorer.exe q:
xcopy "q:\PSP\SAVEDATA\*" "c:\pspsaves\" /y /s
7z.exe a -t7z c:\saves.7z "c:\pspsaves"
rmdir /s /q "c:\pspsaves"

That is my current autorun.bat that runs when I connect my PSP to my PC. One problem. It doesn't start copying/compressing until I close the Explorer window that pops up. If I put it the other way (copy/compress then open explorer) I have to wait for it all to copy then compress. It's only 30 seconds but it is sort of annoying. Any ways to make it do both at once?
 
tell it to run 2 bats at connection?

i have the same problem, i try to run 2 diff progs, but until it thinks the first process is done (closed) it wont continue
 
I haven't tested this but try putting START before explorer.exe

Been a long while since I've messed around with batch files, so that may not do anything
smile.gif


Edit : Just tested it here, start fixes it.

Code:
start explorer.exe q:
xcopy "q:\PSP\SAVEDATA\*" "c:\pspsaves\" /y /s
7z.exe a -t7z c:\saves.7z "c:\pspsaves"
rmdir /s /q "c:\pspsaves"

Give it a go and let me know how it works.
 
matriculated said:
Or put the explorer line at the end? Does it need to be first?
He already mentioned that in his post. If he does that he has to wait for the copy/compress to finish before the explorer window opens.
 

Site & Scene News

Popular threads in this forum