Link to home
Start Free TrialLog in
Avatar of seanab
seanab

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of seanab
seanab

ASKER

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...
Avatar of seanab

ASKER

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\.."