Soldato
Hiyo,
Trying to create a VB Script that will ask you for a folder path and then open all the files in that folder with Notepad. I don't want to have to keep editing the VBS file to put the path in.
At the moment I have this, but I can't figure out how to implement the InputBox command. Any help appreciated!
Thanks
Trying to create a VB Script that will ask you for a folder path and then open all the files in that folder with Notepad. I don't want to have to keep editing the VBS file to put the path in.
At the moment I have this, but I can't figure out how to implement the InputBox command. Any help appreciated!
Code:
Dim objFSO
Dim MyFile
Dim MyFolder
Dim objShell
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = WScript.CreateObject("WScript.Shell")
Set MyFolder = objFSO.GetFolder("W:\Folder")
For Each MyFile In MyFolder.Files
objShell.Run("notepad " + MyFile.Path)
Next
Thanks