1.

Solve : help needed for using net time and xcopy command?

Answer»

Hi there, please help

I am using win 7 and i need to synchronize my PC to the server (Win server 2008). Central-01 is my server name
first is to syn the time from server. I am using a command net time. below is the command
net time \\central -01 /set /y . the respond i am getting is
Current time at \\central-01 is 8/31/2012 12:53:25 PM

System error 1314 has occurred.

A required PRIVILEGE is not held by the client.

why is that ??

2nd i want to syn my folder, subfolders and files. I use xcopy command
xcopy \\central-01\RPT d:\RPT\ /A /D /Y /R /I /S
the respond i am getting is
Invalid drive SPECIFICATION
0 File(s) copied


please help net time probably requires admin permissions.


Try this for the xcopy, ASSUMING the server and SHARE names are right and you have access.

xcopy "\\central-01\RPT\*.*" "d:\RPT\" /A /D /Y /R /I /SHi foxidrive, THANKS for your reply

On that case my user account is an administrator but it still couldn't let me change the time using net time command

For my other question about xcopy command, if ii use long folder name I.e folder name is Update Program
Is this right?
xcopy "\\Centeral-01\Update Program" "c:\Program Files\Integrity\*.*" /A /D /Y /R /I /S
Or
xcopy \\Centeral-01\Update~1 c:\Progra~1\Integr~1\*.* /A /D /Y /R /I /S

Thank u?Is the computer joined to the domain?No, I only use workgroup.

I tried
xcopy "\\Centeral-01\Update Program" "c:\Program Files\Integrity\*.*" /A /D /Y /R /I /S
Or
xcopy \\Centeral-01\Update~1 c:\Progra~1\Integr~1\*.* /A /D /Y /R /I /S

I save the command as a batch file and put it on the startup in windows so every times the OS start up it is also running. It doesn't work at all then I found out that
Both the commands work when I run the the command as the administrator (right klik option) instead the regular run option (double klik or startup).



Discussion

No Comment Found