Consulting

Results 1 to 2 of 2

Thread: Solved: DOS-copy Bat file

  1. #1
    VBAX Regular
    Joined
    Dec 2008
    Posts
    85
    Location

    Solved: DOS-copy Bat file

    Hi all:

    I created a batch file as follows:

    backup.bat
    copy 2.xls 3.xls

    When both the bat file and the files(2.xls and 3.xls) are in the same directory) it runs without problem.
    (i.e. c:\)

    But when I specified the directory I want to copy the file(i.e.
    copy 2.xls c:\victor\3.xls) I got the followinf message:

    "The syntax of the command is incorrect."

    I check the spelling and everything looks fine to me.

    Any ideas how I can I do it, please.

    Thanks for the help.

    Victor

  2. #2
    VBAX Regular
    Joined
    Dec 2008
    Posts
    85
    Location
    I found the solution:
    Just type your copy command having care to surround the directories (and files) with blanks or special characters between "
    Thanks

    Victor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •