0

I tried to search a lot but couldn't find any answer. I have a windows command script file (anySoftware.cmd) which I'm trying to open it by a batch file.

I tried:

start "C:\myPath\anySoftware.cmd"

And:

start cmd.exe "C:\myPath\anySoftware.cmd"

And:

start anySoftware.cmd "C:\myPath"

All is not working.

Appreciate your help! Thanks!

3
  • Have you tried without any command in front of the file path, just "C:\myPath\anySoftware.cmd" Commented Jan 30, 2018 at 20:21
  • I see you didn't read the help for the START command. Regardless of that the only reason you would need to use the START command is if you were running multiple scripts in parallel. Otherwise you can just define the path to the batch file and call it good. If you need control passed back to the parent batch file then you need to use the CALL command. CALL "C:\myPath\anySoftware.cmd" Commented Jan 30, 2018 at 20:27
  • Thanks guys, just deleting the "start" has opened the file successfully. Commented Jan 30, 2018 at 20:48

1 Answer 1

2

Easiest solution:

"C:\myPath\anySoftware.cmd"

This works, too:

  • CALL "C:\myPath\anySoftware.cmd" - Read more about CALL

  • START "" "C:\myPath\anySoftware.cmd" - Read more about START

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.