WinBatch Technical Support Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Current release
:
2023C (6.23CWC)
Home
Help
Search
Tech Database
Documentation
Downloads
Hints
Login
Register
WinBatch® Technical Support Forum
»
All Things WinBatch
»
WinBatch
»
Current script location
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Current script location (Read 1955 times)
siocnarf
Newbie
Posts: 38
Current script location
«
on:
November 25, 2016, 11:36:48 am »
Hi,
Is it a way to get there the location of the running Winbatch script?
With Powershell, it would be--> $scriptDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
But with Winbatch?
Thanks,
Logged
td
Tech Support
Posts: 4287
Re: Current script location
«
Reply #1 on:
November 25, 2016, 02:05:53 pm »
Use the DirScript function. Please see the DirScript function's topic in the Consolidated WIL help file for details.
Logged
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
- Dr. Tom Cade
Print
Pages: [
1
]
Go Up
« previous
next »
WinBatch® Technical Support Forum
»
All Things WinBatch
»
WinBatch
»
Current script location