Using 'current script name' in a script

Discuss and share scripts and script files...
Post Reply
JamesMcBride
Posts: 32
Joined: 20 May 2015 16:18

Using 'current script name' in a script

Post by JamesMcBride »

Is there a Native Variable or something similar that would allow me to use the name of the currently running script inside that script?
Specifically, what I want to do is to name a log file something to the tune of: <scriptname>.log

highend
Posts: 14670
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Using 'current script name' in a script

Post by highend »

rtfm "idh_scripting_comref.htm#idh_sc_self";
One of my scripts helped you out? Please donate via Paypal

Norn
Posts: 490
Joined: 24 Oct 2021 16:10

Re: Using 'current script name' in a script

Post by Norn »

This is just a question, it shouldn't be posted in the script section. . .
Windows 11 24H2 @100% 2560x1440

JamesMcBride
Posts: 32
Joined: 20 May 2015 16:18

Re: Using 'current script name' in a script

Post by JamesMcBride »

Sorry about posting in the wrong place :( Dummie move.

And thank you HighEnd for the somewhat cryptic answer that taught me another scripting command :)
I really appreciate that :)

admin
Site Admin
Posts: 65381
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Using 'current script name' in a script

Post by admin »

No worries, the place is totally okay.

Norn
Posts: 490
Joined: 24 Oct 2021 16:10

Re: Using 'current script name' in a script

Post by Norn »

Okay, I remember when I first started using XY, I looked for the scripts I needed in the script section. It will be difficult for new users looking for scripts unless they specify search terms... Other forums' script sections only allow script posting.
Windows 11 24H2 @100% 2560x1440

Post Reply