antmar904

Help with runaswait syntax

7 posts in this topic

#1 ·  Posted

RunAsWait($UserName, $Domain, $Password, 0, @ScriptDir & '\CopyFileProgress_v1.1.6.exe ' & @ScriptDir '\Installers ' & 'C:\Windows\Temp\GP', @TempDir)

I am trying to run "CopyFileProgress_v1.1.6.exe" with source folder "@scriptdir & \Installers" and destination folder "C:\Windows\Temp\GP" but nothing is working.

Share this post


Link to post
Share on other sites



#2 ·  Posted

You need an & after @ScriptDir however what other errors are you receiving?

Share this post


Link to post
Share on other sites

#3 ·  Posted

I was only receiving an error when trying to compile.

I added the "&", compiled it without any errors but it's not working.

Share this post


Link to post
Share on other sites

#4 ·  Posted

Try running it in Scite and then check the Console for errors.

Share this post


Link to post
Share on other sites

#5 ·  Posted

no errors in scite

Share this post


Link to post
Share on other sites

#6 ·  Posted

So what is in CopyFileProgress script?

Share this post


Link to post
Share on other sites

#7 ·  Posted

turns out admin rights was req

thanks again!

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now