Detecting Flash Drive Mounting And Running A Program?

Aug 15, 2009

I am using VB from Visual Studio.net 2008. I need to understand how to build a VBScript or Application that will detect when a flash drive is inserted into a Windows XP SP2 system. Once the drive is detected, the VBScript/App must then automatically search for any available .ppt file (power point) located in the root directory of that flash drive. If the .ppt file is found, pptview.exe will launched opening the file in question.

This script will be located in the startup folder and will run until a flash drive is entered and then it should pause until the flash drive is removed and then start searching again. This is for a kiosk to be used at trade shows for a company I am working with. The company wants this to be simple and automated and only requiring that the user setup the kiosk, which has no keyboard or mouse, plug in a flash drive with a .ppt file on it. The system will then automatically load the slideshow and play until the system is shut down or the flash drive is removed.

I am pursuing this option because an autorun.inf file on the flash drive only adds another line item to the autoplay dialog. Although it may be possible to write a small script that will select that item, there is no guarantee that the user will have that autorun.inf installed on the flash drive in question.

Also it may be better to copy the .ppt file into a temp directory on the kiosk machine, so that in the event that the flash drive needs to be removed there is not data transfer taking place, minimizing the possibility of data corruption.

Most of the file handling I may be able to handle on my own, but it is the detection of the flash drive insertion and removal that is a problem. I am looking for some clarity on this point first. I may ask other questions later, but for now that is the biggest hurdle I have to cross. [URL]..

View 20 Replies


ADVERTISEMENT

VS 2008 - Auto-start Program From Flash Drive?

Sep 12, 2009

I have a USB flash drive I want to be able to plug into another computer and automatically start the program as soon as it is plugged in and started up, is there a way to do this?

View 8 Replies

How Can Read Data From USB Flash Drive Or Pen Drive

Sep 29, 2011

USB flash drive or pen drive in vb.net...

View 14 Replies

Webbrowser Not Detecting Flash Installation

Mar 4, 2009

I'm a novice in Visual Basic and I'm currently experimenting with development of a small application that includes webbrowser control. When I tested the browser (actually tested a few of them, not developed by myself) accessing websites using flash content, it always returns message "Flash not installed" and prompts me toh have it installed. I remember IE6 used to have problems of this kind.IE7, FF and other browsers work just fine and detect flash plugin straight away.This is probably a known issue, but I just couldn't find anything on it in these forums.

View 3 Replies

Detecting Media - Floppy Disk In The Drive

Jun 23, 2009

If there is no floppy disk in the drive, i need the user to be informed, because when it comes to the loop

For Each File As String In My.Computer.FileSystem.GetFiles(Src, FileIO.SearchOption.SearchAllSubDirectories, "*")
My.Computer.FileSystem.CopyFile(File, String.Concat(Dst, Microsoft.VisualBasic.Right(File,

[CODE]...

View 1 Replies

Flash Drive As Access Key

Nov 15, 2011

how to code an administrator and non-administrator account in VB.net to authenticate a specific user account when mounting his removable device? what will we use, to provide a special key on a specific flash drive?

View 1 Replies

How To Detect USB Flash Drive

Feb 27, 2007

I am making a program that will allow a user to use any USB flash drive as a key, that when inserted, will automatically (upon validation, of course) enter login and password data into web forms, applications, and maybe even Windows Logon. But first things first: how to I detect when a USB key is inserted into the drive, for instance, perhaps just detect the last/latest inserted drive?

In addition, does anyone know if there is a way to directly identify a flash drive, maybe based on a serial number?, rather than validating it from a file on the device?

View 15 Replies

Make Flash Drive Something Like A Key

May 2, 2011

I'm wondering if you it is possible to make your usb flash drive to be like a key for your vb.net program I can't really put it into word the description of it so I will site an example here's my scenario my program has a textbox where you put the password on it to make the program usable but i want instead of typing on it you insert your flash drive and it will automatically insert the password in the textbox and make the program usable.

[Code]...

View 1 Replies

Delete A Folder In Flash Drive?

Dec 10, 2008

My school has this stupid virus and it infects flash drives. I build a program that locates this files and what not and removes it... I guess you can say it's some sort of anti virus.[code]...

View 10 Replies

View Files In Flash Drive?

Feb 4, 2009

Now i want to write code of vb.net to connect with Flash drive and views all files in flash drive

View 3 Replies

VS 2008 - Copy Exe To Usb Flash Drive?

Jan 10, 2012

I have a program that I want to copy itself onto a USB flash drive or any other type of drive connected to the computer. Is it as simple as using the File.Copy method? Can I copy my own running exe?Basically I want them to copy it to a memory or external hard drive and then run it there on another computer. I'm not using any special controls and I know the framework will need to be on the computers it is run on.

View 1 Replies

Password Protect Flash Drive In VB 2008?

Feb 8, 2010

lately, ive had a lot of free time and have been trying to password protect my flash drive in VB 2008. and ive figured out almost everything i want with it, but ive come to a bit of a roadblock. as of right now, ive got 2 accounts, but thats all ive done so far, because every account has like 3 if statements, and it would start to accumulate a bit of i made anymore. so, ive been looking into using a database, and having it retrieve the password and username from there. ive searched for hours, and have found a lot of little bits and pieces of code, but nothing that would work for my situation. Will somebody tell me how i would:

1: make sure that the password and username match in the database when i click the confirm button
2: add a new username and password to a database when they want to make their own account
3: save changes to the database when i log out and move to another computer

also, is there a simple way to log the date, time, IP address, and Username, put it in a text file, and email it to me? i would also like to know how to open a flash drive using its name, and not its letter, cause its a different drive letter on different computers.

View 15 Replies

USB Flash Drive Insert & Removal Notification

Mar 18, 2004

I am trying to write an application which will have different functions depending on someone's security level, but my bosses have ruled out holding a users name and password information in a database due to risk of the database being hacked.So I have decided to use USB flash drives, which will have encrypted datafiles on them, and each staff member will be given one with their details pre-programmed onto them.However I am now stuck with detecting whether the device is present or not, I have thought I can continually scan the available drives and have each flash drive with a set volume label and when it arrives act upon it, but I don't want to keep continually scanning the drives, there has to be a better way than this, .

View 7 Replies

VS 2008 Code To Release A USB Flash Drive?

Jan 23, 2010

I have an App where I update data on a USB Flash Drive and I'd like to add a button that would make it "safe to remove the drive." Is there vb code to execute or emulate the "Safely Remove Hardware" icon on the taskbar?

View 1 Replies

Make A Console App. Boot Off Of A Flash Drive On Startup?

Feb 10, 2010

I recently wrote a program to copy files off of a hard drive with a corrupted copy of windows. I'm not sure how to make it run off of my flash drive in dos. I set boot priority to only boot off of the flash drive yet it will not run. I tried writing an autorun.ini file, which did nothing. I think i need to make a boot.ini file.

View 3 Replies

Move A VB Project From School And Home On A Flash Drive?

Dec 13, 2009

I move a VB project from school and home on a flash drive. At school drive mounts on E: at home it mounts on F:. I have 4 forms, Form1, Form2, Form3. Form4. Form1 and Form3 have incorrect file paths, it has the E:, but Form 2 and Form4 path change just fine when I move it from school and home.

View 1 Replies

Project Split Across Drive / Flash Device Error

Mar 28, 2012

I have a small project that contains three forms. The problem is that one of the forms is on a USB flash memory device(by accident)...the project works with USB flash memory device connected. I want to move the form from flash into the project on c: drive. However i think the project file (?) may keep the original path to the form and it still looks for it. The form in question has an icon which contains an arrow (is this indicating its else where?)

View 1 Replies

VS 2008 - Project - Saved It On A Flash Drive - Use From The Laptop

May 12, 2011

I have a project I wrote a while ago and saved it on a flash drive. I now have a laptop and wish to save it, and use from the laptop. How do I do that ?

View 1 Replies

Create A VB Application That Auto-loads When Insert A Flash Drive?

Nov 27, 2010

I want to be able to create a VB application that is on a flash drive and will run as soon as I insert the flash drive into a computer.

View 7 Replies

Creating A Backup Database To A Specified USB Flash Drive (Using Serial Number).

Apr 25, 2010

i have a question concering USB flash drives. I am building a Record Book with an Access 2007 database. When a user changes some information in the database i have built a procedure to create a backup of the database on a second hard drive. I was wondering if there is a way to find my USB flash drive serial number (either through coding or alternative ways) and specify that USB with that serial number as the location of the backup. As my program is at the moment, the backup is created from C to D. This can be a problem if on other computers there is no D drive or it's not a hard disk. By specifying the serial number to save the backup database to, should work on all pcs (theoretically). I am just not sure if this is possible in any way.

View 4 Replies

Asset Tracking - Pulling Info Automatically From File On Flash Drive

Aug 26, 2010

I am starting a large project here at the office. This project will be an asset tracking software. If time permits I would like to be able to develop the system so that I could put a file on a flash drive and then insert that drive into a pc, run the file and then have all the information pulled automatically but this is where I have no clue as to where to start, how to pull this information automatically. I am also planning to have the ability within the program to generate and print barcodes and maintain the database internally, would I be able to do this with ado.net ? I maintain 4 locations, all together 15 servers and 400 plus nodes.

View 4 Replies

Create A Dummy File To Fill The Remaining Space Of A Flash Drive?

Mar 5, 2009

I was able to get some code working to create a dummy file to fill the remaining space of a flash drive. However, I have added a progress bar and can't figure out why it's not working. I declare a variable for the current value, min, & max properities of the progressbar and then increment it by 1 during each step of my FOR loop. However, I never see anything on the progress bar.

Dim CurVal As Integer
Dim RandomNumber As Byte
'Create the dummyfile to take up the remaining space on the drive

[Code].....

View 5 Replies

VS 2010 Security Dongle - Save The Password (md5 Encrypted ) On A Flash Drive?

Sep 15, 2011

i am having a mysql database that is having a password. so i am using it to login to the program. Is there a way to save the password (md5 encrypted i can do this) on a flash drive so i can access it from the program but the user can't access it.

View 17 Replies

Detecting Running Process In Task Manager?

Apr 22, 2009

How would I Make a program that would detect running process in the taskmanger:
Info on my program
+Like I want it to load the process name's in a Rich textbox or label or textbox (if that's possible XD).
+ And I will Have a Button that once I see all the process and then the button1 will kill the processes I Pick.

View 3 Replies

Publishing The App Flash Files Are Not Running?

Mar 12, 2010

i made an application vb.net 2008 express edition when i am debugging flash files r working fine when i am publishing the app flash files are not running?

View 2 Replies

Exception Error Running App From Network Drive Win7

May 30, 2011

We have a VB.NET applciation that is run from a mapped network drive. This works fine on all PCs expect those with Windows 7, on those we get the following: "application generated an exception that cannot be handled" System.Security.SecurityException was unhandled If the application folder is copied locally and run from there it works fine. I assume it is related to Windows 7 netowrk security but not sure how to work around it.

View 2 Replies

Flash Card Program - Type All The Words On A Text File And Have The Program Randomly Pull One Of Them

Feb 15, 2009

Anyway, I'm a teacher and am writing a program that simply shows kids a word on a flashcard. There are 2 buttons, 1 to read the word and 1 to go to a new work. There are going to be 300 words. Really I'm just testing it right here. What I want to know is should I be inputting all the words right into the code like I did with "hi" and "not 1" (Don't ask. those are just the 2 random words I picked to test this out with). OR is there a better way (maybe somehow to type all the words on a text file and have the program randomly pull one of them (I don't know how to do this).

Here is the code so far:

Public Class Form1
Dim word
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[CODE]...

View 2 Replies

VS - Program Doesn't Work Though Flash Player - When Click On Icon Of Program - Shows Error Message

Sep 30, 2010

I am really confused! My program doesn't work if I don't have Visual Studio here in my PC. To test it I have uninstalled Visual Studio. But my program doesn't work though Flash Player is present there (I have used Flash animation in the first form).

To be more sure about it I have installed Flash. But it's not working! That means the Flash animation file (.swf) is not making a problem! It needs support from Visual Studio to start. Doesn't it mean that some files are not attached with a setup file as a result it needs Visual Studio to run? Let me tell you how I create a setup file of my program.

CODE:

When I click on the icon of my program it shows the error message

CODE:

Reporting details: This error report includes information regarding the condition of WindowsApplication1. When the problem occurred the operating system version and computer hardware is use; your Digital Product ID, which could be used to identify your license; and the Internet Protocol(IP) anddress of your computer.

View 1 Replies

Detecting A Program Crash?

Feb 24, 2010

I have an Access 2007 database that runs constantly, the form on the database basically runs a timer every 10 seconds and runs a Macro. The problem I have is that when the backups run at night the network connection the database is on disconnects for the backup, so the database crashes with the error.

"Your Network Access was interrupted. To continue, close this database, and then open it again."

What I would like to do is create a small VB Application that runs on the machine that the database runs on, detects when the database has a problem, closes down the database process then restarts the database.

View 2 Replies

Detecting Argument Of Program?

Jan 31, 2012

I want to create program that Detecting Argument of Program, For example:There are 2 Program, just call them a.exe and b.exe, If a.exe is open, the a.exe will execute b.exe with some argument, for example, argument is "arg", and I want my program to Detect the Launch Argument of b.exe ("arg").

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved