• Batch File Problem in W7

    Home » Forums » AskWoody support » Windows » Windows 7 » Questions: Windows 7 » Batch File Problem in W7

    • This topic has 2 replies, 2 voices, and was last updated 14 years ago.
    Author
    Topic
    #476323

    I’m using a batch file to copy files from a CD to a folder.
    This command works: copy *.doc foldername
    But this command doesn’t: copy *.docx foldername
    I even tried copy *.* and *.doc?, but nothing works.
    in other words, it seems that the batch processor doesn’t recognize the newer word formats. Is there some work-around? Maybe I need to use a different batch processor.

    Viewing 0 reply threads
    Author
    Replies
    • #1277642

      Chuck,

      I tried this from both the command line and a .cmd file and had no problem {see below}. Is it possible your problem is that your files are not in the current directory, i.e. the one that is active as the batch file is running since you are not specifying the source directory it defaults to the currently active directory..:cheers:

      Note the docxcopy.cmd file contains the same command as on the previous line, i.e., the source does not specify the drivedirectory and it was run from the directory shown on the command line which also contains the .docx file that was copied.

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

    Viewing 0 reply threads
    Reply To: Batch File Problem in W7

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: