Reading And Writing Files On External Hard Drive, Code To Ensure SQL Or Data Read/write Execution In Case Of Periodic Drive Reconnect?
Dec 18, 2010
The drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.
View 1 Replies
ADVERTISEMENT
Jul 8, 2011
I'm working on an app that should be able to read files from an External Hard Drive or even an iPhone or iPod. I'm a beginner so it would be great to keep it simple :) I suppose I should use the SerialPort class? But I'm not sure and I couldn't make it work.
View 7 Replies
Apr 7, 2009
I am doing a little project to get better at my Vb while I am outside of class and I am making a launcher that lanuches my games from my external harddrive. Now I want it to auto find what the Harddrive is mounted to Like in my Code below this is what I have so far:
If CheckBox1.Checked = True Then
Process.Start("u:\Games\Generals\generals.exe")
ElseIf CheckBox3.Checked = True Then
Process.Start("u:\Games\Counter-Strike Source\Launcher.exe")
ElseIf CheckBox5.Checked = True Then
[Code] .....
But Instead of having to go into ym actual Code and Changing it from U: to what ever my drive has mounted to on another computer and have it automaticly find what its mounted to and update my code accordingly.
View 1 Replies
Oct 27, 2010
I'm interested in password protecting my external hard-drive. i know there is already programs that can do this but i want to make my own.
make a program that would at start-up pop up and make the user put the password if not then the partition will be set to hidden. also would be a good idea to set the partition hidden until user puts password.
View 1 Replies
Sep 29, 2011
USB flash drive or pen drive in vb.net...
View 14 Replies
Sep 7, 2010
I got a problem when i try to get binary file from database and put it in hard drive
View 8 Replies
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
Jul 29, 2011
I am using this code to get files, but I can not get it to search for all files on C: drive.how can I get it to show all files Like *.pdf of the drive in the list box
Imports System.IO
Imports System
Imports System.Drawing
[code]....
View 1 Replies
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
Jan 2, 2012
I would like to list all files of a partition such as "C: " and put them on a listbox , I tried but it didn't work ... i said that maybe it was because of the privileges , here's a snapshot containing the code, the form and the error: [URL]
View 1 Replies
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
Mar 14, 2009
I have an application and in this application there is a search option. I want the seach to search for all music and video files. I keep getting UnauthorizedAccessException error and I'm assuming its because my application is trying to access a file for witch access is being denied. This is the code that I am using.tbsearch is textbox and results is the listbox that the search results get added to.
Dim dirPath As DirectoryInfo = New DirectoryInfo("G:")
For Each file As FileInfo In dirPath.GetFiles
(tbsearch.Text & "*.mp3", SearchOption.AllDirectories)
results.Items.Add(file.FullName)
Next
Also, how can't I make it so that only the name of the file found is added, not the full path. I know that I could instead of using file.FullName use file.Name but then I can play the media file because the application wont know where to find it. Any code that I could use to add only the found file name to the listox? Perhaps I need another hidden listbox that get the full name and then the results listbox retrieves only the last part of the path?
View 10 Replies
Jan 2, 2012
I code in vb.net and I would like to list all files in a partition such as "C: ", here's a snapshot containing the code, the form and the error:
[URL]
View 2 Replies
Oct 13, 2011
I have a Little .NET 4 application that starts a portable exe on a mapped drive.But when I'm on my laptop I need to establish a VPN connection before I can access the mapped drive.After establishing VPN connection, the mapped drive is still in disconnected state and my program can't access the exe.Is there som way I can make my program try to reconnect the mapped drive before it acceesses it?
View 2 Replies
Jul 15, 2011
I am trying to write an application that accesses the SMART data from a hard disk, so I can show all the values and whether anything is over the threshold or failing etc Have spent many hours trawling the web without any success.
View 15 Replies
Oct 24, 2011
I found something very strange, in the data base explorer I modify the conection to the location of the data base(F:My DocumentsMy ResepteResepte.sdf) , but after raning the app. the path is back to what it was in the project folder and so the same in the selution window. It is set to Do Not Copy. How can I change this so that the IDE looks at the propper data all the time.
Hendri Bissolati noviceprogrammer@vodamail.co.za
View 4 Replies
Jan 8, 2011
i am trying to make a program where it copies files to a certain external drive, but i cant figure out how to make it to where you enter your drive letter for the external drive and it copies it.
View 6 Replies
Mar 11, 2010
I am presently using VB2010 to develop charting application. I have noticed that whent he applications are developed on my hp dv7-2270us notebook and stored on an external harddrive, if these same applications are then opened on my dell latitude d610, i will recieve a corrupted external harddrive error. Usually this can be repaired with check disk.
View 1 Replies
Jun 22, 2010
I would like to find all the "About" files of all programs stored on my hard drive. If you open a program, click on help and select "About". It provides the name, version and date written etc. I would like to extract and store in DB. The store in DB part, I have no issues.
View 1 Replies
Aug 28, 2010
I need to read the keys from several external applications .config files, is it possible to specify the file for AppSettingsReader?
View 1 Replies
Jan 21, 2010
I am trying to write a program that deletes temp files from my entire c drive. windows 7 will not allow any file manipulation. access denied . everything works fine in windows xp. what needs to be changed in my code to allow anyone to install this program on their computer and run it without errors like this. I need to change my code to correct this not windows 7, as other people will be installing this on their systems and they can't be setting their c drives. every answer i've found online is either to change c drive to have no security or set the code to demand uac to run as administrator(which doesn't work )
View 7 Replies
May 18, 2010
I need to get my application to be installed on to the C: location in Visual Basic after ive published it.
View 7 Replies
Nov 9, 2007
I'm trying to get hard drive temperature data.I can get the temperature via MSStoragedriver_ATAPISmartData.And, I can get all sorts of drive info (model, serial #, etc. via the Win32PhysicalMediaClass.The trouble is trying to link the two together.I get this temperature info, but I don't know which drive it is.The only identifier I can get from MSStoragedriver_ATAPISmartData is InstanceName.That looks like it has the model number embedded in it, but I can't get model number in Win32 my question is how can I get the temperature data and realte it to a specific drive?
View 2 Replies
Mar 26, 2009
is there any way to find out the hard drive that windows is installed in? (local drive?)
View 4 Replies
Oct 19, 2011
Anyone know how i can get the harddrive id?
View 1 Replies
Aug 10, 2009
I would like to use the Windows Vista/7 defragmentation feature from my program. I can use a shell command to call defrag.exe, but there's no way to get the status that I know of. I would like to show a percentage and maybe what part of the process it's doing. Then when it's done get the results.
View 6 Replies
May 19, 2011
I have a VB.Net 2010 app and need to delete a file from the hard drive when the app opens up (cache file). What command will perform this action? I know the name in advance, so I can format the command right in the app.
View 1 Replies
Jul 28, 2011
I have made this program in which the user selects a number of directories and copies them all to an external drive. is there a way to detect when the user does something that involves writing data to the hard drive. When they do, I want my application to detect this and back up that file on the external drive as well so that the back up is always up to date.
[Code]...
View 2 Replies
Aug 13, 2011
How would I disable a device during runtime? I can do it by going to Device Manager and disable it from there, is there anyway I can do it from a program?
View 2 Replies
Aug 4, 2010
How can I get VB.NET to find the folder that begins with "17014 -"? The actual Folder is called "17014 - Mr John Smith", but I want it to search only upto the "-" (hyphen) point.
I will then use this to check if the folder exists or not.
View 2 Replies