Run the script. Everything is clear.
if IsElevated()=0 then
ext("Elevate ^"^"^"" # arg(0) # "^"^"^"")
end if
How to pass arguments for TBS?
For example,
myscript.tbs "d:\My Program.exe" /s
Thank you
Passing arguments in Elevate for TBS
Re: Passing arguments in Elevate for TBS
You cannot.
-
- Posts: 3654
- Joined: Thu May 05, 2011 10:37 pm
Re: Passing arguments in Elevate for TBS
You can pass parameters, but any spaces would count as its own parameter.
Should probably offer a way around that, but example below if you can do
away with spaces.
ext("Elevate ^"" # arg(0) # " NextParam1 NextParam2 ETC^"")
"ostapvoip" wrote in message news:15617@public.tbosdt...
Run the script. Everything is clear.
if IsElevated()=0 then
ext("Elevate ^"^"^"" # arg(0) # "^"^"^"")
end if
How to pass arguments for TBS?
For example,
myscript.tbs "d:\My Program.exe" /s
Thank you
Should probably offer a way around that, but example below if you can do
away with spaces.
ext("Elevate ^"" # arg(0) # " NextParam1 NextParam2 ETC^"")
"ostapvoip" wrote in message news:15617@public.tbosdt...
Run the script. Everything is clear.
if IsElevated()=0 then
ext("Elevate ^"^"^"" # arg(0) # "^"^"^"")
end if
How to pass arguments for TBS?
For example,
myscript.tbs "d:\My Program.exe" /s
Thank you
-
- Posts: 3654
- Joined: Thu May 05, 2011 10:37 pm
Re: Passing arguments in Elevate for TBS
but I should point out that if you just use "Elevate" the parameters passed
to the program are automatically passed.
"ostapvoip" wrote in message news:15617@public.tbosdt...
Run the script. Everything is clear.
if IsElevated()=0 then
ext("Elevate ^"^"^"" # arg(0) # "^"^"^"")
end if
How to pass arguments for TBS?
For example,
myscript.tbs "d:\My Program.exe" /s
Thank you
to the program are automatically passed.
"ostapvoip" wrote in message news:15617@public.tbosdt...
Run the script. Everything is clear.
if IsElevated()=0 then
ext("Elevate ^"^"^"" # arg(0) # "^"^"^"")
end if
How to pass arguments for TBS?
For example,
myscript.tbs "d:\My Program.exe" /s
Thank you
Re: Passing arguments in Elevate for TBS
[quote] but I should point out that if you just use "Elevate" the parameters passed to the program are automatically passed. [/quote]
Hmm... Interesting. TBS example?
Hmm... Interesting. TBS example?
Re: Passing arguments in Elevate for TBS
Try ext("elevate").