leernest Posted June 11, 2004 Posted June 11, 2004 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 ! Ernest
Holger Posted June 11, 2004 Posted June 11, 2004 You did forget the 'space' after the notepad. So if you want to run "notepad.exe help.txt" then you must do it like: Run("c:\winnt\notepad.exe " & $VAR_TEST) Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now