rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Batch files-space problem

tantalus, on Saturday May 31, 2008 11:28:33 AM
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
Reply to tantalus  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
 ice furnace, on Tuesday July 22, 2008 11:03:39 AM
use double quotes around the source:

copy "C:/NewFolder/*.*"
Reply to ice furnace
Open a file with spaces from batch file?Hello, I have made a batch file that will ask you what file name you want to open and what directory it's in. The only problem is that i can't open files with spaces in the name because it treats the first word as the whole file. Can someone... en.kioskea.net/forum/affich-16973-open-a-file-with-spaces-from-batch-file
Batch file DateHello, I am new to batch files and command line, but I need one that will tell me the day in three letters. Right now I have: set_day=%DATE% echo_date_day=%_day% But that tells me: DDD 00/00/00 What should i do so i get rid of the 00/00/0000???? en.kioskea.net/forum/affich-10090-batch-file-date
Help with Loop in batch File using input from (Solved)Hi Together I try to scan some PCs remotely and do want to automize this task. I created a batch file doing a good job, however, it scans only one pc and then I do need to change the target system name. I now want to create a comma seperated list,... en.kioskea.net/forum/affich-15768-help-with-loop-in-batch-file-using-input-from
What to do if a file cannot be deletedWhat to do if a file cannot be deleted How to get rid of the file? Solution 1: Ensure that the file/folder is not in use Solution 2: Run your system on Safe Mode Solution 3: Download or update your Antivirus program Solution 4: Use... en.kioskea.net/faq/sujet-292-what-to-do-if-a-file-cannot-be-deleted
Create a PDF fileCreate a PDF file What is a PDF file? PDF Creator Create Adobe PDF Online Primo PDF ITekSoft What is a PDF file? A Portable Document File (PDF) is a program that has been licensed by Acrobat Company. The program allows the user to... en.kioskea.net/faq/sujet-201-create-a-pdf-file
What are Cookies?Cookies are small files saved on your computer when you visit some web sites. They may contain things like passwords so you can log onto the site without entering again and again your login and password. They are not spy or dangerous programs but... en.kioskea.net/faq/sujet-3-what-are-cookies
Batch file to enter password protectionHello, I use a batch file to open Internet Explorer to a Password protected page every morning when my computer starts. My user name and password are saved and then I just have to press enter. My question is, is there a way for the batch file to press... en.kioskea.net/forum/affich-13800-batch-file-to-enter-password-protection
Batch file to check for .exe fileHello, Excellent forum you guys have here. I am trying to write a batch file here for work so I can check to see which PCs on my work network have a certain program installed. I'm actually checking to see if the SAP program is installed on a... en.kioskea.net/forum/affich-4946-batch-file-to-check-for-exe-file
Batch file helpHello, I need some help with a batch file I need to write, I am trying to do the following. I need to find all the files in location a with a file size of 0KB and replace the text in those files with an error message saying something like "error when... en.kioskea.net/forum/affich-5053-batch-file-help
Download Find Junk FilesThe most part of applications on Windows create temporary files on your hard disk during their functioning. These files are assumed be abolished and the space recovered during the closing of program, but it is not always case. In the course of time,... en.kioskea.net/telecharger/telecharger-446-find-junk-files
Download BatchUnzipSometimes you have several compressed files that you would like to relax all at once, but certain programs do not allow it. Then it is necessary to relax one after another all files and to choose or to define the file of destination. BatchUnzip is a... en.kioskea.net/telecharger/telecharger-616-batchunzip
Download Disk DefragFragmentation is caused by creating and deleting files and folders, installing new software, and downloading files from the Internet. Computers do not necessarily save an entire file or folder in a single space on a disk; they're saved in the first... en.kioskea.net/telecharger/telecharger-90-disk-defrag
Answers for « Batch files space problem »