Jump to content
Sign in to follow this  
ioliver

Help with RunWait()

Recommended Posts

$folder = "C:\Windows"
RunWait(@comspec & "/c " & "cacls " & $folder & " > c:\cacls.txt")

In my code above, AU3 should run CACLS.exe from the command line and redirect the output to c:\cacls.txt. It works if I run 'cacls c:\windows > c:\cacls.txt' from an command line. But when I run it from AU3 I get the following error message:

RunWait(@comspec & "/c " & "cacls " & $folder & " > c:\cacls.txt")

The system cannot find the path specified.

Thanks in advance,

Ian


"Blessed be the name of the Lord" - Job 1:21Check out Search IMF

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...