Herb191 Posted July 14, 2010 Posted July 14, 2010 How would I run a external program file in a program I choose. Essentially I want to do the same thing ShellExecute but I want my script to pick what program opens it. I could use Run() and then automate the program to open the file I want, but it seems like there should be an easier/better way of doing it.
enaiman Posted July 14, 2010 Posted July 14, 2010 Usually these programs accept some parameters. Test first in a cmd window to see if it works. An example how to use notepad this way: Run("notepad.exe c:\test.txt") SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :)
Herb191 Posted July 14, 2010 Author Posted July 14, 2010 Usually these programs accept some parameters. Test first in a cmd window to see if it works. An example how to use notepad this way: Run("notepad.exe c:\test.txt") Just what I needed. Thanks.
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