+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    2

    Unhappy The syntax of the command is incorrect.

     
    hi
    I am writing long but simple batch (attached). In some stage I got "The syntax of the command is incorrect." in few commands, I am sure 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 Attached Files

  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    2

    Thumbs up solution

    just in a case somebody else will suffer....

    "::" signed remarks cannot be used before combined commands [e.g. if exist...(something, somenthig, ...)]
    use "REM" instead and better not to use "::" at all

    10x to Rems from Petri's forum


    Quote Originally Posted by peterko View Post
    hi
    I am writing long but simple batch (attached). In some stage I got "The syntax of the command is incorrect." in few commands, I am sure 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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Command line option syntax error window.
    By fella in forum Technical Support
    Replies: 0
    Last Post: December 27th, 2008, 10:00 AM
  2. incorrect command line error message
    By sandienc in forum Technical Support
    Replies: 1
    Last Post: November 4th, 2008, 08:25 AM
  3. Send Command in PHP in Command line
    By jeremychin in forum Webmastering and Programming
    Replies: 1
    Last Post: September 8th, 2005, 05:41 PM
  4. Playing around with Command Prompt. Command that makes comp beep?
    By mjolnir1134 in forum General Tech Discussion
    Replies: 3
    Last Post: March 8th, 2005, 08:43 PM
  5. Help...Error msg: "Incorrect command line parameters". Windows Installer?
    By thunderb0lt in forum Applications and Operating Systems
    Replies: 7
    Last Post: August 22nd, 2003, 07:22 AM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews