using xcopy to copy a file says Invalid Parameter....

Trying to run xcopy:

xcopy \\%logonserver%\netlogon\PipelineSegments.store C:\Program Files (x86)\Common Files\Microsoft Shared\VSTA\Pipeline\

fails with Invalid parameter.. I've tried it using this as well:

xcopy "\\%logonserver%\netlogon\PipelineSegments.store" \\%computername%\Program Files (x86)\Common Files\Microsoft Shared\VSTA\Pipeline\

that fails as well..

Just to make sure I wasnt going nuts I did

xcopy c:\test.txt c:\temp and that worked...

so is it something to do with UNC paths?
LVL 2
seanabAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewCommented:
Have you tried the below, since you have spaces in the path names you will need to double quote those.

xcopy "\\%logonserver%\netlogon\PipelineSegments.store" "C:\Program Files (x86)\Common Files\Microsoft Shared\VSTA\Pipeline\"

Open in new window

~bp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
seanabAuthor Commented:
Yes I tried that as well, says "invalid drive specification"  I have confirmed I have access to the drive.  If I do not use an UNC path it works, but that does not help me as this is going on during the logon script...
0
seanabAuthor Commented:
billprew, yes that was actually right.. I just couldnt run it from a command prompt.. I ran it from a *.cmd script and it worked.. also I couldnt use "\\%logonserver%\.... but "%logonserver\.."
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.