473,657 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deny running .exe from floppy drive

Is there a way to prevent running an .exe from the floppy drive?
Nov 20 '05 #1
3 1131
VJ
Sure... on application launch, you cand do it. Check for the Application.Sta rtupPath. If the that is equal to the floppy drive, then you can "exit application". How do you get the floppy drive path, I am not sure at the top of my head, but I am sure there are functions to do it. You can check the Help Files with MSDN.

Vijay
Nov 20 '05 #2
I would like to prevent the running of all .exe's from the floppy. I assume
my application would need to be running as a service in the background.
What should the service be monitoring.

"VJ" <an*******@disc ussions.microso ft.com> wrote in message
news:35******** *************** ***********@mic rosoft.com...
Sure... on application launch, you cand do it. Check for the Application.Sta rtupPath. If the that is equal to the floppy drive, then you
can "exit application". How do you get the floppy drive path, I am not sure
at the top of my head, but I am sure there are functions to do it. You can
check the Help Files with MSDN.
Vijay

Nov 20 '05 #3
* "Colin" <le********@hot mail.com> scripsit:
I would like to prevent the running of all .exe's from the floppy. I assume
my application would need to be running as a service in the background.
What should the service be monitoring.


I would ask this in a Windows group because the problem is not related
to VB.NET.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4178
by: Ken Varn | last post by:
Everytime I call Process.GetCurrentProcess() the system goes out to the floppy drive. Why does this happen. I decided to use FileMon to get a log of what is happening when this occurs. Here is the log: 1 4:31:10 PM BlockedConfigAp:1340 IRP_MJ_CREATE A: DASD SUCCESS Attributes: Any Options: Open 2 4:31:11 PM BlockedConfigAp:1340 IRP_MJ_DEVICE_CONTROL A: DASD INVALID DEVICE REQUEST IOCTL: 0x560000 3 4:31:11 PM BlockedConfigAp:1340...
1
1880
by: Anil Kumar Narayanan | last post by:
This is the DIR command of MS-DOS and works for a floppy drive media.. it retrieves all the files whether deleted or not from the floppy drive.. but i was unsuccessful in getting the Date and Time Format.. So if any of u have any info on how to get the Date and Time please forward me through an email.. I would appreciate that.. //--------------------------- F*****K IT COMPANIES --------------- #include <stdio.h> #include <conio.h>...
1
1522
by: Sandy | last post by:
Is there a way to detect if a disk has been put in the floppy drive? Thank You! Sandy
3
1764
by: Just Me | last post by:
In code I check to see if the Floppy drive is ready and display it's state. But if the user inserts or removes a floppy disk I need an event or a Wndproc message to cause the code to display the new state. Is the some way the code can be alerted to the fact that a removable disk drive's state changed? I wonder if the above isn't clear.
0
987
by: Elias | last post by:
Hi, I recently started playing around with the DAAB from Microsoft as part of the Enterprise Library (http://www.microsoft.com/downloads/details.aspx?FamilyId=0325B97A-9534-4349-8038-D56B38EC394C&displaylang=en). So far it has been pretty neat, but when I went to implement the DAAB within an ASP.NET application I began getting some weird side effects. I used essentially the same code that was given in one of the quick start tutorials...
10
2085
by: Just Me | last post by:
If I periodically check to see if the floppy is ready, the drive will each time make a little noise. I've been up against this before and could never find a way to check to see if the floppy drive is ready without making the drive make that grinding noise. Does anyone know a way? Thanks in advance
3
1290
by: Ivan V via DotNetMonster.com | last post by:
Hi All: I have a set data which I need to process it and then generate into a txt format and save it to a floppy diskette. How can I do that? Best rgds, Ivan Vong --
1
1347
by: rf | last post by:
Hey, is there any way to save a file to a floppy disk using php? The server will be linux and the local computer will be windows. I need it so the user can put a disk in the drive, hit go, the php page will create an excel file, save it to the users floppy drive and then tell him to put another disk in and hit ok to restart the cycle again. This will continue until all the needed files are build. I know how to do everything except...
4
1702
by: Academia | last post by:
I don't suppose there is any way to tell if there is a floppy in a floppy drive without activating the drive and causing it to make a noise if there is no floppy in the drive. Is there? Thanks
0
8312
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.