Gaming Do 2 things at once with bat files

myuusmeow

Well-Known Member
OP
Member
Joined
Jun 24, 2007
Messages
1,646
Trophies
0
Website
google.com
XP
327
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?
 

juggernaut911

GBAtemp Slut!
Member
Joined
Jul 13, 2006
Messages
4,165
Trophies
1
Age
13
Website
google.com
XP
1,008
Country
United States
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
 

Richy Freeway

Well-Known Member
Member
Joined
Oct 9, 2006
Messages
779
Trophies
1
XP
2,151
Country
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.
 

Richy Freeway

Well-Known Member
Member
Joined
Oct 9, 2006
Messages
779
Trophies
1
XP
2,151
Country
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    ButterScott101 @ ButterScott101: +1