Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
command similar to %systemroot%
Forums
Active Threads
Search
Who's Online
Help
Print Thread
command similar to %systemroot%
#
94456
16/08/04
06:43 PM
Joined:
Jul 2003
Posts: 39
X
Xanadu
OP
Ameglian cow
OP
Xanadu
Ameglian cow
X
Joined:
Jul 2003
Posts: 39
Is there a mirc equivalent to getting the system root directory?
Thanks
Copy Link to Clipboard
Re: command similar to %systemroot%
#
94457
16/08/04
06:47 PM
Joined:
Nov 2003
Posts: 2,321
T
tidy_trax
Hoopy frood
tidy_trax
Hoopy frood
T
Joined:
Nov 2003
Posts: 2,321
No, but you can get it using COM.
alias envar {
if ($com(a)) { .comclose a }
.comopen a WScript.Shell
if ($comerr) { return }
var %a = $com(a,ExpandEnvironmentStrings,3,bstr,$+(%,$1%))
%a = $com(a).result
.comclose a
return %a
}
//echo -a $envar(systemroot)
Copy Link to Clipboard
Re: command similar to %systemroot%
#
94458
16/08/04
06:55 PM
Joined:
Jan 2003
Posts: 247
Ottawa, Canada
C
ClickHeRe
Fjord artisan
ClickHeRe
Fjord artisan
C
Joined:
Jan 2003
Posts: 247
Ottawa, Canada
litlle type missing , =]
var %a = $com(a,ExpandEnvironmentStrings,3,bstr,$+(%,$1,%))
Copy Link to Clipboard
Re: command similar to %systemroot%
#
94459
16/08/04
07:14 PM
Joined:
Dec 2002
Posts: 2,884
Norwich, UK
S
starbucks_mafia
Hoopy frood
starbucks_mafia
Hoopy frood
S
Joined:
Dec 2002
Posts: 2,884
Norwich, UK
It'll still work fine without it. You can place text directly after $
n
in the same way that you can with $*dir identifiers.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage