Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Location

Status
Not open for further replies.

toolbox212121

Technical User
Nov 18, 2010
73
US
Does anybody know how to tell what path a script lives in? So that I can put it in any folder and it can find all its support scripts. Thank
 
I think I could answer the question, except that I'm not sure what the question is exactly...

I'd expect the script to run within the 'context' of the current directory, i.e. the directory in which it happens to live.

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, or photo, or breakfast...and so on)[/small]
 
58sniper said:
In what scripting language?

It's a significant consideration although I'm not sure the OP is asking much of a coding/syntax question yet.

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, or photo, or breakfast...and so on)[/small]
 
Sorry been out for a while due to the holidays. I'm just using .cmd files so I guess its not really a script. Just batch files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top