Results 1 to 24 of 24

Thread: Problems running .exe file - Resolved

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    10

    Unhappy Problems running .exe file - Resolved

    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:
    1. Dim Path, File As String
    2. Dim TaskID As Double
    3. Path = "C:\ReSynch\WorksetVersion\executable\Re_Synch.exe"
    4. File = "C:\ReSynch\WorksetVersion\executable\Parameters.txt"
    5. TaskID = Shell(Path & "" & File, 1)

    but that doesn't work. Any other ideas?
    Last edited by Tami; Jul 19th, 2005 at 08:23 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width