do you know how i can do some thing like xcopy "file1\file2" "file1\file4" instead of having to put the exact location like xcopy "c:\users\%username%\Desktop\file0... for example. sorry if i didn't enplane it to well.
-----Getting Invalid number of parameters error----
This error occurs when you're typing a directory in the MS-DOS or the Windows command line that has spaces in it. For example using the xcopy command to copy files in the Documents and Settings folder. When typing a directory with spaces in MS-DOS make sure to surround the path with quotes. For example, instead of typing: c:\documents and settings type "c:\documents and settings".
Nice guide but lets say I want a batch file that copies a few word 2003 templates from the network drive to the normal microsoft templates directory, I tried this :
xcopy Q:\Cegelec_Templates\*.* C:\Documents and Settings\%username%\Application Data\Microsoft\Templates\*.* /s /e --------- But then I get an error saying invalid number of parameters, but when I use C:\Users as the destination folder it does work, any tips? thx
@Dartmoul1 I can think of 2 possible problems. There might be an issue using %username&, try putting your actual username if you can (just to test to see if thats the problem). The other thing I can thinkof which is probably the problem is the space in Application Data. I'll try to find a solution for that. I'll let you know when I find a fix.
but thanks :D
niek9812 2 days ago
/S /E YOU DONT NEED TO KNOW WHAT IT MEANS.... uuhm.... he doesnt know hisself :P
niek9812 2 days ago
Thank you
thecoolkowalski 1 month ago
thankz :)
lhanzkie420 1 month ago
Great tutorial :) you helped me with my university coursework!! THANK YOU!?
Wigley123456 3 months ago
Thanks dude..Your is really really helpful..once again thanks a lot for posting it.
sudhir5051 6 months ago
hi your video was really helpful.
do you know how i can do some thing like xcopy "file1\file2" "file1\file4" instead of having to put the exact location like xcopy "c:\users\%username%\Desktop\file0... for example. sorry if i didn't enplane it to well.
thnx
007killnoobs 6 months ago
Great for games that only allow one user saves :D
WhiteWolf1145 6 months ago
This has been flagged as spam show
Subscribe to me if that helped ;)
rainbowcrak 9 months ago
-----Getting Invalid number of parameters error----
This error occurs when you're typing a directory in the MS-DOS or the Windows command line that has spaces in it. For example using the xcopy command to copy files in the Documents and Settings folder. When typing a directory with spaces in MS-DOS make sure to surround the path with quotes. For example, instead of typing: c:\documents and settings type "c:\documents and settings".
rainbowcrak 9 months ago
Nice guide but lets say I want a batch file that copies a few word 2003 templates from the network drive to the normal microsoft templates directory, I tried this :
xcopy Q:\Cegelec_Templates\*.* C:\Documents and Settings\%username%\Application Data\Microsoft\Templates\*.* /s /e --------- But then I get an error saying invalid number of parameters, but when I use C:\Users as the destination folder it does work, any tips? thx
Dartmoul1 1 year ago
@Dartmoul1 I can think of 2 possible problems. There might be an issue using %username&, try putting your actual username if you can (just to test to see if thats the problem). The other thing I can thinkof which is probably the problem is the space in Application Data. I'll try to find a solution for that. I'll let you know when I find a fix.
shanetalbert 1 year ago
@Dartmoul1 Ok, I think I found a solution. Try this:
xcopy "Q:\Cegelec_Templates\*.*" "C:\Documents and Settings\%username%\Application Data\Microsoft\Templates\*.*" /s /e
shanetalbert 1 year ago