When using FileSystemObject, you can refer to the directory with which the script was run using the path "." . Is it possible to change what FileSystemObject considers the current directory so that you can use "." . path syntax for other directories?
Example:
Set fso = CreateObject("Scripting.FileSystemObject") Set f1 = fso.GetFolder(".") ' Returns the current directory Set f2 = fso.GetFolder(".\backup") ' Returns the "backup" directory under the current directory
As a simplified example, is there a method for calling fso, so calling fso.GetFolder (".") Instead returns the backup directory?
vbscript
dlanod
source share