kdjonesmtb2
Technical User
Looking for vbscript code that creates a new folder from the input name entered in an input box
This code works but it creates a file not a file folder
Dim Input4
Input4 = InputBox("Enter Archive Folder Name")
MsgBox ("You entered: " & Input4)
If row=1 then
Function CreateArchiveFolder
Dim fso, f
CreateObject("Scripting.FileSystemObject")
Set fso =fso.CreateFolder("\\ikanas267\Documents\kgittensjones\My Documents\QTP 834" & Input4)
CreateArchiveFolder = f.Path
End Function
End if
This code works but it creates a file not a file folder
Dim Input4
Input4 = InputBox("Enter Archive Folder Name")
MsgBox ("You entered: " & Input4)
If row=1 then
Function CreateArchiveFolder
Dim fso, f
CreateObject("Scripting.FileSystemObject")
Set fso =fso.CreateFolder("\\ikanas267\Documents\kgittensjones\My Documents\QTP 834" & Input4)
CreateArchiveFolder = f.Path
End Function
End if