Thanks for your reply. I'm new to VS. It appears I have made my question clear. For example, I have a script file "c:\App1\myBatch.bat", and in my application I need to do
Dim sh = CreateObject("WScript.Shell")
Dim ReturnCode = sh.Run("c:\App1\myBatch.bat" , 4, True)
If ReturnCode= 0 Then
do something...
End If
Currently I add the file "c:\App1\myBatch.bat" to my setup project using windows installer so the file will be installed somewhere like "C:/Programma Files/...", depending on the user's selection. You know the sh.Run line will not run on the user's machine. What's the solution?
Sanping