"The syntax of the command is incorrect." error in batch - MS-DOS
This is a discussion on "The syntax of the command is incorrect." error in batch - MS-DOS ; hi I am writing long but simple batch. In some stage I got "The syntax of the command is incorrect." in few commands, but I am sure they are correct (e.g. "IF EXIST "%PROGRAMFILES%\Saveresults\saveresult.exe" ( ". Same command works properly ...
![]() |
| | LinkBack | Tools |
|
#1
| |||
| |||
| I am writing long but simple batch. In some stage I got "The syntax of the command is incorrect." in few commands, but I am sure they are correct (e.g. "IF EXIST "%PROGRAMFILES%\Saveresults\saveresult.exe" ( ". Same command works properly when written in Command Prompt window or in another batch. I tried to resave the batch, also in other editors, several times , but the result is the same. editor: Notepad++, ANSI encoding, DOS/Windows format What the **********, could be the catch ? 10x for help p.s. would be anybody willing to review and "tune up" the batch? |
![]() |
| Tags |
| batch, encoding, syntax |
« Previous Thread
|
Next Thread »
| Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "The syntax of the command is incorrect." error in batch | peterko | MS-DOS | 0 | 01-26-2010 05:05 PM |
| COUNT field incorrect or syntax error | unix | Websphere | 1 | 10-08-2007 06:45 PM |
| Syntax to conditionally run a batch command based on comparison of file dates? | unix | MS-DOS | 9 | 10-01-2007 05:53 AM |
| Syntax to conditionally run a batch command based on comparison of file dates? | unix | MS-DOS | 0 | 09-25-2005 09:15 AM |
| Syntax to conditionally run a batch command based on comparison of file dates? | unix | MS-DOS | 0 | 09-25-2005 09:15 AM |
All times are GMT. The time now is 08:32 AM.





