I\'m trying to get the current directory and use it to run an application no matter where the file is put and no matter how the path is changed
Dim fso: set
You can use CurrentDirectory property.
Dim WshShell, strCurDir Set WshShell = CreateObject("WScript.Shell") strCurDir = WshShell.CurrentDirectory WshShell.Run strCurDir & "\attribute.exe", 0 Set WshShell = Nothing