Search : in
By :

Batch files-space problem

Last answer on Dec 17, 2008 8:49:15 pm GMT tantalus, on May 31, 2008 11:28:33 am BST 
 Report this message to moderators

Hello,
I have a problem with copying with batch files. When the source and/or destination in the xcopy command has space in itself, it won't copy. It reports "Invalid number of parameters". For example, the source is C:/NewFolder/*.* Now it copies. But if the destination is C:/New Folder/*.* it won't copy any more. Is there any sign that I can put instead of space and that the batch file recognises it as space? I assume that there is a solution for this. Please help. Thank you

Best answers for « Batch files space problem » in :
Batch file – Get Filenames & Timestamps Show Batch file – Get Filenames & Timestamps Issue Solution Note Issue Can anyone help me create a batch file that will display all the files, subfolders and files under subfolders of folder with both date created and date modified then...
What is a batch file? ShowWhat is a batch file? Creating a batch file Prerequisites Create file Windows comes with a version of DOS, which allows you,exploiting the features and the sequence of commands in a script. Batch file, is a simple text file (ascii)...
Batch file ShowBatch file Settings File Creation DOS is integrated in windows which allow to exploit functionality and command sequence in a script. A batch file is a text file which contains command to be read by DOS. This file can be launched...
[Batch File]Time based actions Show[Batch File]Time based actions Issue Solution Issue Upon creating a batch file you want that certain line of batch file is executed after every second (not all the program only certain line). In VB we can do it using the Timer...
Download Advanced Batch PDF Splitter ShowPDF Format is a reliable format to keep your documents. Most of the time, you convert several PDF documents at once or extract specific pages. To execute this process quickly, you can use Advanced Batch PDF Splitter. This program offers three...

1

ice furnace, on Jul 22, 2008 11:03:39 am BST
  • +2

Use double quotes around the source:

copy "C:/NewFolder/*.*"

Reply to ice furnace

2

 ghack2k, on Dec 17, 2008 8:49:15 pm GMT

Thank YOU! : )

Reply to ghack2k