Within arcpad (edit form) I want to get the current location of the vbs script running. This simple vbs script outside of arcpad works fine.
wscript.echo " " + Wscript.ScriptFullName
However, when I call this statement within a button click event in arcpad is gives and error and says object wscript required.
I also tried this:
Dim sCurPath sCurPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".") Application.MessageBox(sCurPath)
However, I'm getting
directory (not location of vbs script).
Any ideas of how to find current directory of vbs script running in arcpad edit form?