Jump to content

Run with a variable


Recommended Posts

How can I use the Run command with a variable as a parameter ?

e.g

$VAR_TEST="C:\temp\abc.txt"

Run("c:\winnt\notepad.exe" & $VAR_TEST)

After I ran that command, error in 2nd line. Unable to execte the external program. How can I run a command with variable parameter ? Please help ! :D

Ernest

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...