I am trying to create a folder on a remote machine based on current date where I will store the nightly scheduled tests' results. I just used the QTP help and got the sub below. but i get an error "path is not found" when I execute this .vbs
I played with the path name, i.e. putting \\\\ or taking out the "$" but no luck
Anyone has any idea how to create a folder on a remote machine?
folderName = date
path = "\\machine\c$"
Sub AddNewFolder(path, folderName)
Dim fso, f, fc, nf
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(path)
Set fc = f.SubFolders
If folderName <> "" Then
Set nf = fc.Add(folderName)
Set nf = fc.Add("Bogus")