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


ADVERTISEMENT

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

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

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

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

VS 2008 - Make A Flash Object 2 Copy From Flash1 The Actions And The Whole Movie?

Oct 17, 2009

Guys,this is my first day at the forum,and my second thread. Can someone explain me how can i make an axshockwaveflashobject2 to copy what happens at axshockwaveflashobject1 like a picture or video. I have a tabed trainer and i want to see my stats in game at the second tab. i have the hack menu on a toolstrip,but i have at the tab 2 flash1.get variables to textboxes,but i can't see what's happening at the flash1,and i may lose the level by falling in the sea. The code should make something like a mirror from flash1 to flash2 at the other tab.

[Code]...

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

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

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

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

Copy Files From The USB Flash Disk?

Sep 19, 2010

how to copy files from the USB flash disk drive Automatically?

View 5 Replies

VS 2008 Flash Movie In Flash Control

Apr 10, 2009

Well I have a Flash Movie loaded in the Flash Control, And I need to reload it. (So the new base url is used) How do I do this?

View 1 Replies

Copy Files From One Drive To Another?

Aug 3, 2011

I am trying to copy files from one drive to another. I am a novice at Visual Basic, but here are the facts. I am running Windows XP, and Microsoft Visual Studio 2008. I work at a business where we need to move a small amount of data every Sunday, literally about 100k, a few small files. I'm trying to cut and paste the files as we will not need them in the main file any longer. There's also the network issue, I'm trying to pull them off a LAN, onto my computer, specifically the G: drive to the C: drive.

This is what I put so far:

vb
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FileCopy.CopyFiles("G:SharedSFMachinesTemp&HumidityTracking", "C:Richard's Stuff") End Sub

View 6 Replies

Copy Entire Contents Of USB Drive Using VB?

Jun 1, 2010

I am trying to copy the entire drive contents of a CF card to another location. For example:

Source Location:
e:DCIM
Destination Location:
X:2010-06-01

What I want to do:

- Copy E:*.* to Destination
- The original file structure can stay the same. I want to copy everything from the root of the Source Drive

I can copy the contents if I set source string to e:DCIM.. But I'm concerned that if I get something that doesn't have the first directory (DCIM) it's going to error.

View 4 Replies

Copy The Files Into Tape Drive?

Oct 8, 2010

I want to transfer the files from local system to tape drive. How can i achieve this.

View 2 Replies

Copy Files From My Resources To Hard Drive?

Feb 14, 2009

Is it possible to copy files from my resources to the hard drive? In other words, I have a few files located in My.Resources & I would like to copy them as needed to the users HD.

View 3 Replies

Access Is Denied To Copy An Exe File From Resource To A Hhd Drive?

May 17, 2012

Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code].....

but alwys i get thie error access to the path e: is denied but the hard drive is accessable, so how i copy a fil from resource to a a disk drive like F: /

View 2 Replies

Copy Files To Floppy Disk Instead Of Hard Drive

Aug 27, 2010

Iam trying to copy file to floppy disk rather than to hard drive. I try to use the code that I used in VB6 but there are so many errors. I gave up. Are any simple code the would do it? New C# Programmer

View 2 Replies







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