View unanswered posts | View active topics It is currently 25 Jul 2014 11:39



Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Colored Menu for starting multi task [SOLVED] 
Author Message
Online

Joined: 10 Feb 2012 02:20
Posts: 4016
Post Re: specify a directory [SOLVED]
abc0502 wrote:
foxidrive wrote:
This will not run any program in %%d.

Quote:
start /w "%%d"


The first pair of quotes in a start command are used for the title.

You need this:

Code:
start "" /w "%%d"

the folder that will be specified will have only patches that will be ordered in alphapitic order then will be run one by on the patches are auto start so the code work fine with this patches


Try this at the CMD prompt.

Code:
start /w "c:\test doesn't exist"


19 Apr 2012 07:41
Profile

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
Post Re: specify a directory [SOLVED]
i fixed the if not defined error
just use errorlevel
Code:
if %errorlevel%==1 cls & goto loop1


i write it after
set /p "cho1=Option #:"
it fixed the empty enter or invaled directory path

and using if not defined without %% worked too

i have no error with start /w %%d it work fine


19 Apr 2012 07:45
Profile
Online

Joined: 10 Feb 2012 02:20
Posts: 4016
Post Re: specify a directory [SOLVED]
abc0502 wrote:
i have no error with start /w "%%d" it work fine



I notice you changed it in all three places.


19 Apr 2012 08:07
Profile

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
Post Re: specify a directory [SOLVED]
foxidrive wrote:
abc0502 wrote:
i have no error with start /w "%%d" it work fine



I notice you changed it in all three places.

even before changing them there was no errors but all work now fine


19 Apr 2012 08:39
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 19 guests


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.