| View previous topic :: View next topic |
| Author |
Message |
WhitePaw
Joined: 27 May 2009 Posts: 1
|
Posted: Wed May 27, 2009 8:10 am Post subject: bat works correctly - exe while at starting program |
|
|
I've made a batch file that should start all my messengers with one click.
It works fine but when i compile it to an exe, it stops while starting a program.
The messenger should start if its not already started.
| Code: | @echo off
tasklist | findstr /i trillian.exe 1>NUL 2>&1 || F:\Trillian\Trillian.exe
tasklist | findstr /i skype.exe 1>NUL 2>&1 || F:\Skype\Phone\Skype.exe
tasklist | findstr /i xfire.exe 1>NUL 2>&1 || F:\Xfire\Xfire.exe
sleep 15
xcopy /S /Y F:\Xfire\sounds.bak\sounds F:\Xfire\sounds |
|
|
| Back to top |
|
 |
|
|
silfox
Joined: 04 May 2009 Posts: 2
|
Posted: Sun May 31, 2009 7:44 pm Post subject: Re: bat works correctly - exe while at starting program |
|
|
Maybe you can use 'start' command.
I haven't try it yet
| Code: |
tasklist | findstr /i trillian.exe 1>NUL 2>&1 || START F:\Trillian\Trillian.exe
|
| Code: |
tasklist | findstr /i trillian.exe 1>NUL 2>&1 || F:&&cd Trillian&&start Trillian.exe
|
|
|
| Back to top |
|
 |
|