Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I wrote the following batch file:

start D:\folder1\bin\run.bat
start D:\folder2\bin\run.bat
start D:\folder3\bin\run.bat
start D:\folder4\bin\run.bat

It executes the first start but then gives me the following error:

windows cannot find " D:\folder2\bin" Make sure you type the name
correctly, and then try again. To search for a file, click the
start button,and then click search

Note: I'm sure the spelling is correct and I put start D:\folder2\bin\run.bat in another file and it executes correctly.

share|improve this question
    
Try using 'call' instead of 'start' –  jftuga Feb 14 '11 at 16:56
1  
@jftuga, call is not a substitute for start. –  John Gardeniers Feb 14 '11 at 17:11

1 Answer 1

up vote 2 down vote accepted

You probably have a stray character or a mismatched quote. There's something about your batch file that you're not showing. Is the space before the "D" in the error message really there (or is it a typo in your question)? If it's real, that and the fact that the error shows the directory but not the filename provides clues to the source of the problem.

Try this to see if it makes a difference:

start "title" D:\folder1\bin\run.bat

Adding a title like that to each line.

share|improve this answer
    
+1 Start can be finicky when there are multiple start lines and the supposedly optional title parameter is left out. –  John Gardeniers Feb 14 '11 at 17:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.