In part 4 I describe that it is important to include the hard drive structure when you do a backup. I show how tokens and delims work and how variables in the order of the alfabet is assigned from each token. I use the path separator to get the second token and the rest of the path assigned to %%b variable. That is how I remove "c:/. That is later used to rebuild file path structure when copying the file to c:/mybackup. I show how to remove the last " character using simple string manipulation.
I also explain why I need to use the short name file path version when adding a task to the scheduler.
I show hot to convert a filepath to a folder path. It solves what the path is to where the script is running. The path is used to tell the batch to copy to its current location.
Link to this comment:
All Comments (0)