cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Which parent batch file called another batch file?

gchampoux
7-Bedrock

Which parent batch file called another batch file?

I have a particular utility batch file (A) that is called from several other "parent" batch files (B,C,D).


I would like batch file A to determine which parent (B-D) it was called from.


Is this possible without passing an argument?


Gerry


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2
RandyJones
19-Tanzanite
(To:gchampoux)

On 02/01/12 10:39, Gerry Champoux wrote:
> I have a particular utility batch file (A) that is called from several other "parent" batch files
> (B,C,D).
>
> I would like batch file A to determine which parent (B-D) it was called from.
>
> Is this possible without passing an argument?

You could also set an environment variable in parent and check the value of it.

>
> Gerry
>
>


--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
Fax: 785-667-2695
------------------------------------------------------------------------

My goal is to avoid editing the parent batch files.


Gerry



In Reply to Randy Jones:


Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags