Hoping someone can assist me. I'm looking for a way to create a folder using vbscript that includes the date in the name. I have the (very simple) script below, and it works as-is, but i want the destination folder to be g:\backups_date\ and I can't figure it out. Any help would be greatly appreciated -- I'm missing something. Can anyone tell me how to create the destination folder including the DATE?
*******************************
Option Explicit
dim destination
dim sourcefolder
destination = "g:\backups\"
sourcefolder = "c:\temp"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.CreateFolder(destination)
objFSO.CopyFolder sourcefolder, destination
wscript.echo "Done copying files"
******************************
Thx,
LJG
*******************************
Option Explicit
dim destination
dim sourcefolder
destination = "g:\backups\"
sourcefolder = "c:\temp"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.CreateFolder(destination)
objFSO.CopyFolder sourcefolder, destination
wscript.echo "Done copying files"
******************************
Thx,
LJG