DosTips.com

A Forum all about DOS Batch
It is currently 01 Jul 2016 12:47

All times are UTC-06:00




Post new topic  Reply to topic  [ 19 posts ]  Go to page Previous 1 2
Author Message
PostPosted: 19 Apr 2012 07:41 
Offline
Expert

Joined: 10 Feb 2012 02:20
Posts: 5703
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"


Top
   
PostPosted: 19 Apr 2012 07:45 
Offline

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
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


Top
   
PostPosted: 19 Apr 2012 08:07 
Offline
Expert

Joined: 10 Feb 2012 02:20
Posts: 5703
abc0502 wrote:
i have no error with start /w "%%d" it work fine



I notice you changed it in all three places.


Top
   
PostPosted: 19 Apr 2012 08:39 
Offline

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 19 posts ]  Go to page Previous 1 2

All times are UTC-06:00


Who is online

Users browsing this forum: aGerman, Bing [Bot], thefeduke, Yahoo [Bot] and 14 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® Forum Software © phpBB Limited