Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: The syntax of the command is incorrect  (Read 11770 times)

0 Members and 1 Guest are viewing this topic.

Abo-Zead

    Topic Starter


    Beginner
  • Thanked: 1
  • Experience: Familiar
  • OS: Windows 10
Re: The syntax of the command is incorrect
« Reply #15 on: February 19, 2014, 05:13:12 PM »
But did you realize what your initial mistake was? I pointed it out to you clear as day with a screen shot.



I'm sorry I can not understand my fault because I can not understand thescreen shot, please try to explain the screen shot again with clarification.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: The syntax of the command is incorrect
« Reply #16 on: February 20, 2014, 12:02:33 AM »
There were several single form feed characters where there should not be any.


Squashman



    Specialist
  • Thanked: 134
  • Experience: Experienced
  • OS: Other
Re: The syntax of the command is incorrect
« Reply #17 on: February 20, 2014, 08:36:21 AM »


I'm sorry I can not understand my fault because I can not understand thescreen shot, please try to explain the screen shot again with clarification.

The screen shot shows you where all the carriage return and line feeds are in your batch files.  Those are shown as CR and LF.  As you can see from the screen shot you have Line feeds in the middle of your code.  When batch sees a LF or CRLF combination it assumes that is the end of the command.  So basically ever time you see a LF without a CR before it, that is WRONG!