… problem with batch files is they do not have any graphical user interface… so if you need to insert some input like, location of folders, it is very troublesome… open explorer and find the folders, copy the location and paste it in the command prompt… so to simplify the methods… we can add GUI in the batch files…
Const myComputer = &H11&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(myComputer)
Set objFolderItem = objFolder.Self
strPath = objFolderItem.Path
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.BrowseForFolder(0, WScript.Arguments.Item(0), 0, strPath)
If objFolder Is Nothing Then
Wscript.Quit
End If
Set objFolderItem = objFolder.Self
objPath = objFolderItem.Path
Wscript.Echo objPath