Results 1 to 2 of 2

Thread: Hmph, one last Q...

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    29

    Question

    Atleast I hope it is my last.

    SO CLOSE!!
    I am so close to getting my program to work, the only problem is that when I run the program it is supposed to look for a file in a folder that I designate. I Used the Shell Command to tell it to open like this:

    Shell "C:\folder1\folder2\" & FileName & ".exe"

    However, for some reason DOS Prompt loads (like it should) up and gives an error saying something like:

    Cannot find file in "C:\Program File\Microsoft Visual Studio\vb98\C:\folder1\folder2\fileName.exe"

    Is there any way to make it NOT look in the MSVS folder?

    Thanks again, soon all my questions will be answered

  2. #2
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101
    Try changing the default directory:

    ChDir "C:\"
    Shell "C:\Folder1\Folder2\" + Filename + ".exe"


    That might do the trick.

    -Zero the Inestimable

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