Re: How to write a batch file for backup?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Eric" <Eric@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F944397E-EC8C-43D5-88A7-2AEB1E692012@xxxxxxxxxxxxxxxx
Thank everyone very much for suggestions

Within the batch file, will it be possible to create a folder named by
today
before copy into this folder? such as
"F:\My Backups\291108", which stands for 29-Nov-2008
Does anyone have any suggestions?
Thank everyone very much for any suggestions
Eric

Yes, it is, but the method depends on the date format generated by your
installation. Do this:
- Click Start / Run / cmd {OK}
- Type this command:
echo %date%{Enter}
- Report exactly what you see.


.



Relevant Pages

  • Re: Persisting env vars in cmd windows
    ... The help text for the command you question goes like this: ... format by typing this: echo %date% ... If you don't then the batch file will fail. ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)
  • Re: Creating a .bat file?
    ... echo Merry Christmas ... If you want help with the batch file you need to reveal more of its contents or you should reveal the source of the file. ... 'Delay' is not a valid Windows command, this is probably just pinging the loopback adapter for 30 seconds. ... wouldn't know their user names or profile folder path so they would ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Need Help with a DOS script (if possible)
    ... were meant to run the batch file with the "echo" command in place in the ... It never did but you removed the "echo" command regardless. ... echo Checking the target folder xxx%Target%yyy ...
    (microsoft.public.windowsxp.general)
  • Re: Perfmon and batch file
    ... > event viewer and run command file. ... > but no execute the cmd file or execute it but not execute the ... You are probably making some assumptions in your batch file ... @echo off ...
    (microsoft.public.windows.server.general)
  • Re: Persisting env vars in cmd windows
    ... sharp and robust batch file. ... I open several Command windows in succession. ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)