Hey all,
I am new so sorry if this has a simple solution.
Okay, I am creating a form in excel that outputs the data entered into the table into a text file, parameters.txt. An in house re_synch.exe file uses the information in parameters.txt to get the newest version of a set of files on to the user's pc.
Right now my program works so that I can put whatever I want in parameters.txt then click start run re_synch.exe.
I want my vb program to call the .exe file and have it automaticaly run so the user doesn't have to manually open it.
The problem is when I use the shell command, the .exe file opens but it fails to read the information in parameters.txt and instead asks for user input like it is supposed to if parameters.txt is blank.
How do I fix this?
I tried
VB Code:
Dim Path, File As String Dim TaskID As Double Path = "C:\ReSynch\WorksetVersion\executable\Re_Synch.exe" File = "C:\ReSynch\WorksetVersion\executable\Parameters.txt" TaskID = Shell(Path & "" & File, 1)
but that doesn't work. Any other ideas?




Reply With Quote