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


ADVERTISEMENT

Automatically Detect A Drive For Backup A Database?

Apr 4, 2012

i have here a code for my back up:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim dbload As String = Application.StartupPath + "\Enrollment System.accdb"

[code]......

View 10 Replies

Get Hard Drive Serial Number?

Jul 2, 2009

I would like to get the hard drive serial number.... to make a security feature for some software so it will only run on that hard drive... [URL]

View 13 Replies

Get Serial Number For Drive In Vb 2008?

Apr 22, 2010

Dim SerieDisco as String Dim SerDis As New FileSystemObject Public Const LDisk= "C" SerieDisco = SerDis.Drives(LDisk).SerialNumber In VB6 I did use this code and get the serial number of Driver C: But now I am traslating the application to VB 2008 and I don't know how i do it? The methot in VB 6 function with hard Drive, CD and memory card (usb)

View 9 Replies

Getting Drive Volume Serial Number In VB 2010?

Oct 1, 2010

I am trying to build an autorun application for windows 7 and I need to retrieve a drive's VOLUME serial number (the one that changes when you format it)

View 4 Replies

Read Serial Number Of A USB Drive Using Program?

Jul 21, 2009

Is it possible to read the serial number of a USB drive using VB.

View 3 Replies

VS 2008 Get The Hard Drive Serial Number?

Mar 6, 2010

How can i get the hard drive Serial Number.The Physical one only I spent 1 hour on google the only examples i found all had errors

View 18 Replies

VS 2008 - Hard Drive Real Serial Number

Mar 6, 2011

PHP
Dim searcher As ManagementObjectSearcher = New ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia")
For Each wmi_HD As ManagementObject In searcher.Get()
MessageBox.Show(wmi_HD("SerialNumber"))
Next
I am using this code for getting hard drive serial number its works ok with me but not working on my friends system and return an empty string.

View 4 Replies

Get Serial Number Hard Drive And Mother Bord In Program?

Aug 25, 2011

How do to get serial number hard drive and mother bord in vb.net?

View 17 Replies

VS 2008 Reading Local Hard Drive Serial Number?

Oct 29, 2009

My Dad made an application which had a feature that i want, basically his programme reads the users hard drive serial number and then multiplies it by say 12 and then divides it by 7 for example. This number is then shown as a 'Authorisation Code' which the user has to email to him and then his breaks it back down to the original hard drive serial number which he sends back which is the application serial number to activate it. I want to know how to read the actual hard drive serial number or a number that every computer has so i can do the same but i have searched everywhere and cannot find any examples for VB 2008 apart from one which didn't work

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

VS 2008 A From To Backup To A Drive From My Computer

Aug 19, 2010

A form that will have a drop down menu that will display the drives available in My computer. I really only want this list to show USB drives, but I wouldn't know how to limit the list to only show certain drive letters. And then how you would know what Drive letter would appear.So they would select there backup location from the drop down. Then the next option would be to select from 3 or 4 different different options that would have have radio buttons next to the options that you could select. Would be like: Playlists, Schedule, Media Library. They could select all or one of these. Each of these would represent a folder, or File that would be copied to a folder on the selected USB drive. Then the final button would be labelled Backup, and upon pressing that depending on what options were selected files would start to copy.

Now I know how to do the final copy part kinda, what I don't know is how to do is select the destination on the fly from what was selected in the drop down menu. And then how to make sure that what is being copied is that that is selected from the check boxes.

View 1 Replies

Drive Backup Is Capable Or Will It Crash And Burn?

Jul 11, 2009

i was wondering if anyone body has used Chilkat Zip Component or any Chilkat compression in there project before.I am currently developing a small project used for drive and directory backups.i am looking at using a 7Zip Or Tar Compression as Chilkat supports theses.i was wondering if a Drive backup is capable or will it crash and burn?

View 2 Replies

Finding Physical Drive Number Using Drive Letter?

Jun 16, 2009

I have a program that allows the user to enter a drive letter into a text box. The program then takes the letter and find the physical drive number (i.e. deviceharddisk3..). It then stripes out everything and leaves me with the number 3.

In VB6 I used mDrive.bas from vbAccelerator.com and it worked perfectly. I have been all over the internet and back and cannot find a solution written in VB.NET.

View 14 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

Getting Physical Drive Number From Drive Letter?

Jun 17, 2009

I am trying to get the physical drive (device) number from the drive letter. If the user inputs the drive letter C the program will find the associated physical device number. For example if I input C then the result needs to be \Device\HardDrive1\... Some call it NT Device Name; I think. I have the code for VB6 from vbAccelerator, which works perfectly, but it does not work in VB.NET. My question is there a simple way of pulling the drive info that contains the drive letter and the physical device number. I have searched the internet and found nothing for VB.NET. I would post code but I have nothing for .NET.

View 1 Replies

Physical Drive Number From Drive Letter

Jun 16, 2009

I have a program I am converting from VB6 to VB.NET and I am stuck at the very last piece of code. I need to determine what physical device number is associated with the drive letter.

The program takes the drive letter from a text box and goes and finds the device number (i.e. deviceharddrive3...) and strips out everything leaving me with the devicer number; in this case the number 3. I have searched the internet to and fro and found nothing in VB.NET.

My program in VB6 uses a .bas module from vbaccelerator.com called mDrive.bas and works great. I can't figure out how to convert it over to VB.NET.

View 6 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

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

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







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