Xcopy & Long File Names - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 09-14-2006, 02:48 PM   #1 (permalink)
True Techie
 
Join Date: Nov 2003
Posts: 109
Default Xcopy & Long File Names

On a Clients system running XP Pro, I want to back up on a daily basis from the RAID system to the Mail Server
I intended using xcopy & creating as batch file but with the command line as follows

"xcopy/s/y \\server\xxx users c:\Documents and Settings\User\My Documents\Thursday Backup"
the message "Invalid number of parameters" is displayed

Is the problem with my syntax or can anyone through any light on the problem

Thanks
__________________

philb101 is offline  
Old 09-14-2006, 07:30 PM   #2 (permalink)
Techie Beyond Description
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default

xcopy /e/s \\tplfps001\Dshares\WABCO\ISO9000\DAS\*.* \\hebfps001\Gshares\DAS


here is an example I use
__________________

__________________
Osiris is offline  
Old 09-15-2006, 06:13 AM   #3 (permalink)
Master Techie
 
Join Date: Feb 2004
Posts: 2,172
Send a message via AIM to Win2kpatcher
Default Re: Xcopy & Long File Names

Quote:
Originally posted by philb101
On a Clients system running XP Pro, I want to back up on a daily basis from the RAID system to the Mail Server
I intended using xcopy & creating as batch file but with the command line as follows

"xcopy/s/y \\server\xxx users c:\Documents and Settings\User\My Documents\Thursday Backup"
the message "Invalid number of parameters" is displayed

Is the problem with my syntax or can anyone through any light on the problem

Thanks
The name is to long..must keep it at 8 characters with bat files/xcopy commands. Here is a quick on the fly script I wrote to backup a users my documents folder running XP.

xcopy C:\Docume~1\smithr\mydocu~1\*.* u:\%username%\mydocu~1\*.* /E /C /Y /M
cd\
exit

All I am doing there is backing up the users My Documents folder to a network share which pulls the users name from the profile via the %username% donation.
Win2kpatcher is offline  
Old 09-15-2006, 06:14 AM   #4 (permalink)
Master Techie
 
Join Date: Feb 2004
Posts: 2,172
Send a message via AIM to Win2kpatcher
Default

Interesting War I didnt know you could use an outright UNC path..**** just when you think you know so much in the inudstry..haha.
Win2kpatcher is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 11:44 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.