Hello all
I have the follwing folder structure I would like to manipulate.
1. I have C:\PPress with 5 sub folders
2. I want to bakup the entire folder before I update two of the subfolders with PDF files
This is what I have so far
Option Explicit
On error resume next
Dim objFso, objfolder, objShell, numFolders, FolderPath, -
FolderPrefix, FolderPrefix1, i
numFolder = 5
FolderPath = "C:\PPress"
FolderPrefix1 = "PPressBak"
For i = 1 to numFolders
Set objFSo = CreateObject("Scripting.FileSystemObject")
If objFso.FolderExists(FolderPath & FolderPrefix & i) Then
Wscript.echo("Type code to backup folders")
Wscript.echo("Copy new PDF to subFolders")
End If
Next
I don't think I need all the code here and trying to get the logic and syntax correct
Thanks for any assistance in my learning this code it's been great....
I have the follwing folder structure I would like to manipulate.
1. I have C:\PPress with 5 sub folders
2. I want to bakup the entire folder before I update two of the subfolders with PDF files
This is what I have so far
Option Explicit
On error resume next
Dim objFso, objfolder, objShell, numFolders, FolderPath, -
FolderPrefix, FolderPrefix1, i
numFolder = 5
FolderPath = "C:\PPress"
FolderPrefix1 = "PPressBak"
For i = 1 to numFolders
Set objFSo = CreateObject("Scripting.FileSystemObject")
If objFso.FolderExists(FolderPath & FolderPrefix & i) Then
Wscript.echo("Type code to backup folders")
Wscript.echo("Copy new PDF to subFolders")
End If
Next
I don't think I need all the code here and trying to get the logic and syntax correct
Thanks for any assistance in my learning this code it's been great....