I need to call a variable that I set using "set testvariable=example" in a command prompt. Basically I want to simply replace text in a script with the "example" text I set in the variable.
Here's an example that I'll put "example" in where I want the variable string to replace the text. Sorry if I'm not making much sense but I'm sure someone will understand where I'm going with this. Thanks in advance for any help.
sZipFile = "C:\Windows\Temp\"Example"\whatever.zip"sTargetFolder = "C:\Windows\Temp\"Example""Dim oShellApp:Set oShellApp = CreateObject("Shell.Application")Dim oFSO:Set oFSO = CreateObject("Scripting.FileSystemObject")If not oFSO.FolderExists(sTargetFolder) Then oFSO.CreateFolder sTargetFolderEnd If oShellApp.NameSpace(sTargetFolder).CopyHere oShellApp.NameSpace(sZipFile).Items