Jump to content
antmar904

Help with runaswait syntax

Recommended Posts

antmar904
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
Subz

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

Share this post


Link to post
Share on other sites
antmar904

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
Subz

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

Share this post


Link to post
Share on other sites
antmar904

no errors in scite

Share this post


Link to post
Share on other sites
Subz

So what is in CopyFileProgress script?

Share this post


Link to post
Share on other sites
antmar904

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

×