Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Syntax error on cmd file
Name: Kuthy Date: June 13, 2007 at 22:29:31 Pacific OS: Windows Server 2003 R2 CPU/Ram: 3.4Ghz - 1024MB Product: HP
Comment:
I have created a simple batch script that moves a file to a certain directory. When it moves the file it changes the name of the file to reflect the current date and time. This was working 100% until this error came up: The syntax of the command is incorrect. (Windows Server 2003 standard ed)
Here is my code: @echo off set drive=S:\Logs set dateNtime="%date:~0,2%%date:~3,2%%date:~6,6%_%time:~0,2%%time:~3,2%" echo ## Backing up Logs move "C:\DB\Logs\vumlogs.bak" "%drive%\vumlogs%dateNtime%.bak" echo. echo. pause
Please could someone assist as to why that error is coming up. it was working OK ?? Tks in advance.
Summary: I have employees that on their workstations both a mapped drive letter and I have their My Documents redirected to the same mapped drive letter on a Windows 2003 Server. Under the mapped drive I can c...
Summary: I'm having a problem accessing websites that involve passwords. i can not automatically jump into a protected site simply with ie: name:password@website.com/blah it gives me a invalid syntax error. i...
Summary: Macs on my network are unable to transfers files larger than 2GB on my Win2003 file server. The Windows Server 2003 has 3 500GB HDDs put together in RAID 5 formatted with NTFS. So the effective file s...