I have looked at other threads with WshShell.run problems and found some useful info, however, I am having a problem where if I hard code the executable and its parameters as follows:
WshShell.Run "c:\myprogram.exe systrain at_order_entry main customer ",1
all is ok.
My problem is that I want to use a variable for customer so amended the script to:
File = "c:\myprogram.exe"
Database = "systrain"
Form = "at_order_entry"
Formtitle = "main"
Customercode = "customer"
Appline = File & " " & Database & " " & Form & " " & Formtitle & " " & Customercode & " "
WshShell.Run chr(34)&Appline&chr(34),1
This does not run.
Does anyone have any suggestions?
WshShell.Run "c:\myprogram.exe systrain at_order_entry main customer ",1
all is ok.
My problem is that I want to use a variable for customer so amended the script to:
File = "c:\myprogram.exe"
Database = "systrain"
Form = "at_order_entry"
Formtitle = "main"
Customercode = "customer"
Appline = File & " " & Database & " " & Form & " " & Formtitle & " " & Customercode & " "
WshShell.Run chr(34)&Appline&chr(34),1
This does not run.
Does anyone have any suggestions?