Hi I'm a first time poster thats working on a project. My project calls an external Java program that sends off texts from the command prompt like:
java programName <argument>
I have seen how to call up the command prompt using shell scripts:
Private Sub CallApp()
Call Shell("C:\WINDOWS\system32\cmd.exe", 1)
End Sub
...and I have seen how to run a program:
Sub RunProgram()
Set objWSH = CreateObject("WScript.Shell")
objWSH.Run """C:\Documents and Settings\.......\myProgram.jar"""
End Sub
...but I can't find a way of putting extra arguments into the command line when I run the program. Is there a simpler way to just print a string to the command line and run it??
Any help would be greatly appreciated.