CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Location
    Pa, USA
    Posts
    4

    Get Application Folder

    I have created a small App for a BBS I am running. The app will be downloaded to the clients machine and executed from there. I am trying to determine the folder name the app is running in on this client machine at run time. And then compare this to a name I hard code into the app. If they are equal, then the app will run, if not equal the program will not run except for a Message Box. I am new to Visual Basic, and I think I can use FSO to accomplish this, but have had no luck. Any help is appreciated.

    Thanks
    Phil


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Get Application Folder

    how about using App.Path?
    This variable contains the complete path to the folder where your exe file resides in.


  3. #3
    Join Date
    Jan 2000
    Location
    Pa, USA
    Posts
    4

    Re: Get Application Folder

    App.Path I imagine would return the full path. This would always be different depending on where the user installs the Client. The app folder would always be the same, ie Carbon Street BBS.

    What I am trying to do is create a simple Anti-Theft code. Once my app is downloaded to the client, it would not be hard for another sysop to use the exe file. But then it would be downloaded from their server to their BBS folder under the client dir and not execute since their working folder would not compare to my hard coded BBS folder.

    Thanks,
    Phil


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

Featured