VbScript and the Shell object
Posted on 2005-03-01
I am working in VBScript and need to open a separate application and load a .dat file into it.
The following code allows me to open the application:
Set appShell = CreateObject("WScript.Shell")
Call appShell.Run("C:\Progra~1\LogPlo~1\LP2003.exe", 1, True)
Set appShell = Nothing
I need to open the file now. It can be opened using command line:
"For example, to start up LogPlot and load the data file named "project_a.dat", you would use
the following command line:
I don't know how to run the command prompt programmatically and add this line. What is the best way to accomplish this task?
Thanks in advance,