We are looping through the output of the “%DATE% %Time%” output and breaking it down into different parts (called tokens). The output of this is used to figure out what the different parts are in our loop I left it in so you could easily tweak for different regional settings or rearranging the values. This is used to DISPLAY the contents of what we will be parsing. Now, I will explain what each line does Backing up Boot Configuration Dataĭisplay a comment on the screen so the user knows what we are doingĬode comment that just tells other programmers that are looking at the code what we are doing.Īnother comment, just a note to programmers :: this is Regional settings dependent so tweak this according your current settingsįor /f “tokens=1-8 delims=./ ” %%A in (‘echo %DATE% %TIME%’) do set FileDateTime=%%D%%C%%B-%%E%%F%%GĮCHO FileDateTime IS %temp%AutoBootBackup-%filedatetime%.bakĮcho This is a test file > %temp%AutoBootBackupTemp-%FileDateTime%.bakīCDEDIT /export %temp%AutoBootBackup-%FileDateTime%.bak Here is the resulting Backing up Boot Configuration Data You can book a call with us today by clicking here.I created this script for use in my AutoBootVHD8.cmd file which is part of a hands on lab /HOL If you would like to learn more about MOVEit Automation automated file transfers or would like to talk about how how we might be able to help your organisation implement a managed file transfer solution. Maybe we can take some credit for having helped in him the past. □ This workflow achieved the objective that our customer set out to achieve and he was able to configure it himself with the knowledge he had acquired through his time using MOVEit Automation. Which should result in only that days log file being present on the source at any time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |