Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Having Problem with xcopy Command ???

21 Jan 2019   #1
BuckSkin

Windows 7 Pro x64
 
 
Having Problem with xcopy Command ???

On several occasions, I have successfully followed the instructions provided here:

How to copy an entire folder structure without copying the files (tip for starting the new financial year) | Cameron Dwyer | Office 365, SharePoint, Outlook, OnePlace Solutions

In fact, I did the exact same command yesterday and the only thing I changed tonight was one drive letter.

When I first discovered the article, I copied the command straight off the web-page and pasted it in Notepad; then, on the same notepad page, I made a duplicate paste of the command.
I edit this second copy to suit my needs; then, copy/paste it into the Command Line.

It has always worked up until tonight; now, I get an error "invalid number of parameters"

I have checked and double-checked and I cannot see anywhere I could have erred from the path, so to speak.

In fact, as I already said, for tonight's attempt, I only changed a single drive letter.

My navigation paths are both a lot shorter than the examples in the article.

It worked yesterday, it just will not work tonight.

My command looks perfect in the Command Line; what could I possibly be doing wrong ?

Thanks for reading and all help is appreciated.


>>>Edit:>>> I kept messing with it; did a bit of wasted Google-searching; and, I honestly don't know what I did, as I entered the path exactly as I had been and it just decided to work.
According to what I found in my search, that error is very common and nobody really seems to have a solution.


My System SpecsSystem Spec
.
21 Jan 2019   #2
Paul Black

7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
 
 

Hi BuckSkin,

Quote   Quote: Originally Posted by BuckSkin View Post
>>>Edit:>>> I kept messing with it; did a bit of wasted Google-searching; and, I honestly don't know what I did, as I entered the path exactly as I had been and it just decided to work.
According to what I found in my search, that error is very common and nobody really seems to have a solution.
Yes, that is strange, That can sometimes happen if a quote is missing. There is no accounting for computers!
My System SpecsSystem Spec
Reply

 Having Problem with xcopy Command ???




Thread Tools




Similar help and support threads
Thread Forum
Xcopy command and FastCopy are not copying all files
Is anyone familiar with a particular type of problem I'm having when trying to copy files from an old hard drive (HDD) to an external drive (ED). The old drive is in an enclosure and using both FastCopy (the most robust copier I've found) and Xcopy to do the copying I notice the source and...
Backup and Restore
Command Prompt Copy/XCOPY
Hi All I want to start off saying I'm new to command prompt and scripting so please be nice :) Want I am trying to do it every time I run a script it copies 1 file from the same source folder to a folder with subdirectories in it, I need the file to be copied to every subdirectory. ...
General Discussion
Meaning of Parameters in the XCOPY command
I'm trying to create bootable flash drives. At one point, I'm told to use the command, xcopy f:*.* /s/e/f hg: in which f: is the source, g: is the destination. Why am I told to type, "hg:"? What does the "h" do? When I enter the command, Windows 7 asks me if g: refers to a file or a...
General Discussion
Need xcopy script help
I'm looking for a script that will allow me to copy and "overwrite" all files with a date and time stamp BEFORE a certain date. The source files will NOT be deleted and all permissions will stay the same in destination directories. Copy does include subfolders as well. Any ideas?
General Discussion
Help with bat file (xcopy) on Win7
I have a batch file that copies some files from a win7 hard drive to a USB stick. Sample code: mkdir G:\holder xcopy C:\users\me\documents\sub\*.*/s/e/h/r/y/D G:\holder\*.* This file works fine on any previous version of MS Windows to copy all the files in the targeted directory that are...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:55.
Twitter Facebook