fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

"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 ...


Fix Unix > Microsoft Windows > MS-DOS > "The syntax of the command is incorrect." error in batch

Reply
 
LinkBack Tools
  #1  
Old 01-27-2010, 07:29 AM
Junior Member
 
Join Date: Jan 2010
Posts: 2
Unhappy "The syntax of the command is incorrect." error in batch

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 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?
Attached Files
File Type: txt test_01.txt (12.9 KB, 1 views)
Reply With Quote
Reply

Tags
batch, encoding, syntax

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.