Finding Folder On Hard Drive?
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
ADVERTISEMENT
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
Jul 27, 2009
[Code]....
now i have folder call help in("D:help1.jpg")in this folder files download fom another program and save. now i want that i have pen drive .i want to make such command that when click button it copy the files from ("D:heelp..") and copy to the pen drive.
View 6 Replies
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
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
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
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
Feb 1, 2010
I am looking for a way to retrieve the temperature of hard drives in VB Express 2008. I have found posts at a few different places that accomplish this with the following:
[Code]...
View 7 Replies
Oct 6, 2010
[code] i need to find a way to loop through ALL the directory's on the "c" drive and not just the main folder.
View 4 Replies
Oct 6, 2010
i have this piece of code:
[Code]....
and it works just fine. However, saying that, i need to find a way to loop through ALL the directory's on the "c" drive and not just the main folder. Does anyone have any code that can do that?
View 2 Replies
Mar 9, 2012
have this piece of code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strFileSize As String = ""
[code].....
View 6 Replies
Dec 17, 2010
I want my code to open cmd and then change to an other hard drive. But instead bends lots of cmd come up.
I don't know what the problem is, but here is the code.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
View 5 Replies
Feb 1, 2010
I am looking for a way to retrieve the temperature of hard drives in VB Express 2008. I have found posts at a few different places that accomplish this with the following: Public Function GetDriveTemp() As Integer
Try
Dim searcher As New ManagementObjectSearcher("rootWMI", "SELECT * FROM MSStorageDriver_ATAPISmartData")
For Each queryObj As ManagementObject In searcher.Get()
Dim arrVendorSpecific As Byte() = queryObj("VendorSpecific")
GetDriveTemp = arrVendorSpecific(115
Next
[Code]...
This function retrieves the temperature for all the hard drives in my system (excluding USB), two internal and one external esata drive. There are two problems, tough: 1. I want to know the drive letter and maybe the drive label that the retrieved temperature corresponds to. I'm assuming that the * in the query, "SELECT * FROM MSStorageDriver_ATAPISmartData", can be changed to specify a particular drive rather than all drives, but I don't know how retrieve a list of all the drives in my system or how to write the query based on those results.
2. If I call the funciton from a some click event like for a label or button, there are no problems and the return value seems valid. But when I call the function from a Timer_Tick event, the mouse cursor is the busy cursor as long as the mouse is within the form, the form doesn't receive any click events, and it cannot be closed.
I know what I'm trying to do can be done because there are a few utilities that provide this information.
View 1 Replies
Jan 22, 2006
how to retrieve the temperature of a hard drive in Visual Basic 2005? The temperature can be retrieved from the S.M.A.R.T information, but I don't know how to do that in Visual Basic 2005. There probably is a way, but unfortunately, I don't know.
[URL]
View 21 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
Jul 25, 2010
I've been checking endlessly on MSDN and the net in general trying to find out how to get the computer's "C:" drive serial number and also the GUID.Everything I've found seems to pointing to the System.Management library using the ManagementObject, but "ManagementObject" doesn't appear to be recognized by the IDE?!I've imported: System.Management, System.Management.Instrumentation, Microsoft.Win32 and System.IO, but ManagementObject is still coming up as an error.I'm aware I can simply access the registry to get the GUID, but can anyone simply give me the code to access these 2 elements please.
View 10 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
Sep 17, 2010
Can I check how many drive partitions there are in the system and which dirve letter is CD/DVD or hard disk partition.
View 5 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
Jun 22, 2012
Im trying to create a program to gather information about users pcs. So far I have been able to gather thigns like the os, processor, hard drive size and graphics information and I was just wondering how I would be able to collect the name of the motherboard they are using (or model) and the make of the hard drives in their machines.
View 1 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
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
Feb 16, 2011
I'm developing a system info application. I've Searched all over internet and only found code for Free Hard Disk space, but not Total hard disk space.
The code should calculate the Total space of all the drives.
View 7 Replies