Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: IntControl(1004,0,0,0,0)
a=WinExeName("") Message("Parent Program",a)Or:
a=IntControl(1004,0,0,0,0) Message("Parent Program. Method 2",a)This tells you the currently running EXE. We cannot determine the EXE that started a currently running EXE.
c:\hereiam> q:\apps\public\runme.exedirget() called from within runme.exe would return c:\hereiam. a dirchange() can not be applied, as the working directory should stay as it is.
And what about the path?
myexe=IntControl(1004,0,0,0,0) mypath=Filepath(myexe) Message("The path is",mypath)Or:
mypath=DirHome() Message("Home Path",mypath)
Article ID: W13156
Filename: Get EXE Name and Path of Parent Program.txt
File Created: 1999:04:15:16:52:08
Last Updated: 1999:04:15:16:52:08