tyrant1969
Programmer
I have a VBscript that performs several steps for me but it can be called by one of a few different processes.
Most of the steps are identical for both processes - if process 1 calls the VBS file it does steps 1,2,3,4,5,6; but if process 2 calls the VBS file I want it to do 1,2,3,7,8,9 and if process 3 calls it I want it to do 1,3,4,7,9,10 and 11.
How do I tell what external program called my script?
Most of the steps are identical for both processes - if process 1 calls the VBS file it does steps 1,2,3,4,5,6; but if process 2 calls the VBS file I want it to do 1,2,3,7,8,9 and if process 3 calls it I want it to do 1,3,4,7,9,10 and 11.
How do I tell what external program called my script?