Search found 2 matches
- 23 Jan 2023 08:19
- Forum: DOS Batch Forum
- Topic: Is it possible to find the name of a parent script that has run your script by its bare name (i.e. without CALL) ?
- Replies: 2
- Views: 8034
Re: Is it possible to find the name of a parent script that has run your script by its bare name (i.e. without CALL) ?
yeah, I see your example here and also on my StackOverflow post, where I see you have also commented. Jeb commented there as well and agrees it's almost definitely impossible. I already kinda had a sense that it wouldn't be possible without supplying the name of the top level file as an argument whe...
- 22 Jan 2023 20:12
- Forum: DOS Batch Forum
- Topic: Is it possible to find the name of a parent script that has run your script by its bare name (i.e. without CALL) ?
- Replies: 2
- Views: 8034
Is it possible to find the name of a parent script that has run your script by its bare name (i.e. without CALL) ?
I've tried WMIC and the (goto) trick so far. WMIC, I have no idea how I would trace a ParentProcessID etc. to a file name and path even if I got it, but maybe I'm missing something. Meanwhile (goto) seems useless; I know how to find the parent if my script was CALLED, but it's all one call stack whe...