Click to See Complete Forum and Search --> : Get Application Folder
PhilLong
January 28th, 2000, 07:45 AM
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
Lothar Haensler
January 28th, 2000, 07:46 AM
how about using App.Path?
This variable contains the complete path to the folder where your exe file resides in.
PhilLong
January 28th, 2000, 07:59 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.