Prevent software being loaded 225 POINTS !

Hello There,
Would like some working code which would show me how to prevent software from being installed on my computer via the CD and A: drives while in windows 95. Using visual 5.0

Thanks, feel free to comment !
ssi49
ssi49Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

headerCommented:
Unplug the drives and remove them from your computer.
0
mcriderCommented:
Here's an old, old trick...

shell "subst a: c:\windows\temp"

Your A drive will no longer be accessable until you delete the subst.

You can do the same thing with your CD Drive...

Cheers!

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mcriderCommented:
by the way, to delete the subst, use:

shell "subst a: /d"


Cheers!
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

KDivadCommented:
Oh, GOD, that IS old! But very, very simple and 99% effective. To install something, they would have to put it in the temp folder from the drive. To get it from the drive to the temp folder, it would already have to be in the temp folder. If someone really, REALLY wanted to install something, they could always use some sort of computer link to download it (LAN, Net, DCC, etc.) but who's that desperate?

Later,
0
ssi49Author Commented:
mcrider,
   Old or not, I like it ! You be da man!
Thank You!
ssi49
0
mcriderCommented:
By the way, If you really want to keep people from undoing your SUBST, rename the command to something else... That way, only you can delete the SUBST.

Cheers!
0
ssi49Author Commented:
mcrider,
Your last comment caught my eye. How would i rename the command as you suggested ? I only have 5 points left but your are welcome to them !
Thanks
ssi49
0
mcriderCommented:
Just go to the WINDOWS\COMMAND direrctory and rename the SUBST.EXE command to something else... In a DOS window, for example:

CD C:\WINDOWS\COMMAND
RENAME SUBST.EXE SETDRIVE.EXE

Then in your program, do:

shell "setdrive a: c:\windows\temp"


Cheers!


By the way, if you want to give points to me for this answer, just open a new question with the title "FOR MCRIDER ONLY" and I will answer it...


0
ssi49Author Commented:
mcrider,
I figured out the question while waiting for you to answer. Finally did something right. (not)
I will award you the points in the morning. I used them for something else while waiting. How is that for honesty ?
Thanks Again and for waiting for your points!
ssi49
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.