bat works correctly - exe while at starting program

Convert your BATch files into EXEcutable format in one click.
Post Reply
WhitePaw
Posts: 1
Joined: Wed May 27, 2009 8:04 am

bat works correctly - exe while at starting program

Post by WhitePaw » Wed May 27, 2009 8:10 am

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: Select all

@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

silfox
Posts: 2
Joined: Mon May 04, 2009 9:10 pm

Re: bat works correctly - exe while at starting program

Post by silfox » Sun May 31, 2009 7:44 pm

Maybe you can use 'start' command.
I haven't try it yet

Code: Select all

tasklist | findstr /i trillian.exe 1>NUL 2>&1 || START F:\Trillian\Trillian.exe

Code: Select all

tasklist | findstr /i trillian.exe 1>NUL 2>&1 || F:&&cd Trillian&&start Trillian.exe

Post Reply