Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

bat works correctly - exe while at starting program

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
WhitePaw



Joined: 27 May 2009
Posts: 1

PostPosted: Wed May 27, 2009 8:10 am    Post subject: bat works correctly - exe while at starting program Reply with quote

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

PostPosted: Sun May 31, 2009 7:44 pm    Post subject: Re: bat works correctly - exe while at starting program Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group