Hello all,
I am writing a script that is making updates to a webpage based on an input file, which contains the full path to the file being updated in both dev and prod. What I want to do is prior to copying what is in dev to prod is copy the current file in prod to a backup directory, but at the same time preserving the folder structure. Does anyone know how this could be done? As you will see below, the number of subfolders is not static, but the document root for the site is. See below for an example of the input file:
c,c:\webroot\d,c:\webroot\
Any help is greatly appreciated!
Sheel
I am writing a script that is making updates to a webpage based on an input file, which contains the full path to the file being updated in both dev and prod. What I want to do is prior to copying what is in dev to prod is copy the current file in prod to a backup directory, but at the same time preserving the folder structure. Does anyone know how this could be done? As you will see below, the number of subfolders is not static, but the document root for the site is. See below for an example of the input file:
c,c:\webroot\d,c:\webroot\
Any help is greatly appreciated!
Sheel