Monday, July 27, 2009

Syntax issues with command prompt command function?

Having trouble with the call command, says it can't find the file or path


the path is this C:\Documents and Settings\D\Desktop\echo.bat


and what I enter in command prompt is this


call [drive:C:][\Documents and settings\D\Desktop]echo.bat


but I'm not sure what to do.

Syntax issues with command prompt command function?
Yes, as newton3010 said, you can use the 8.3 naming extension. It's probably because 'Documents and Settings' has spaces in it, so you can use Docume~1 (provided there isn't another directory called Documents).





Also try putting quotes around the path, like:


call "C:\Documents and Settings\D\Desktop\echo.bat"


see if that helps.
Reply:You need to use the 8.3 naming convention on that....dont ask me why, some do some dont, anyway...





change it to C:\Docume~1\D\Desktop\echo.bat





its just going to close on you though...., did you put a pause in the BAT file?


No comments:

Post a Comment