VS 2005 Locating A File In The Computer Disk Drive?
Jul 11, 2009I ve a file in my computer.......
i want to knw the locetion of my file in the disk drive.....
I ve a file in my computer.......
i want to knw the locetion of my file in the disk drive.....
I have a program that must copy a file to 3 locations, the local hard disk, a USB drive, and a network location. I have the file (about 70mb) loaded into a byte array. My quesion is, since I'm not actively modifying the byte array, can I impliment a form of multithreading where all 3 threads read the same byte array at the same time?
View 1 RepliesI'm working on a program that lists all of the files on all of the drives on my computerI'd comments. To use the program Start a new Windows Forms application and replace the code on Form1 with the code listed here.
Imports System.IO
Imports System.ComponentModel
Imports System.Globalization
[code].....
I want to learn more about API codes, but I don't know how to get started. The thing I want to accomplish today is:basically I want to be able to locate a certain text box anywhere on my computer, and then I want to be able to write something to it. For example here on Firefox, you see the navigation toolbar. I want my program to find the name for that window, and then to type for example ("www.vbforums.net") automatically.
View 12 RepliesI want my program to find the disk drive. I just do not know how to find it programmically? Can anyone help, please? This should be pretty easy, right?
View 12 RepliesGiven a filename, how do I efficiently search for that file on disk?
(Visual Studio 2005, i.e. .NET 2.0)
I am trying to get the HDD Disk Drive information from the DeviceIOControl(,,,,,) function with IOCTL_DISK_GET_DRIVE_LAYOUT_EX control code.
Here are the problems :
1. The DeviceIOControl function returns(as from output buffer) DRIVE_LAYOUT_INFORMATION_EX structure. Which contains some data types i am unable to get. I used. Uint32 instead of Dword. Long instead of Large_Integer.
2. DRIVE_LAYOUT_INFORMATION_EX structure contains a union declaration as mentioned on MSDN , HOW TO GET A UNION in VB.NET or vb 6.
3. Still when i tried declaring the data types as mentioned earlier gives an error (Value does not fall within the expected range.) executing the DeviceIOControl Method.
Link : [URL]
i'm trying to list out the what to pick when using the perfmon counter, physical disk. when you look at it in perfmon, it shows for example, 0 C:, 1 D:. I see how to get the drive letters avaliable on the sytem.. how in vb.net to get the disk id. i want to get a listing of all the hard drives on the system, both their ID and the drive letter.
View 7 RepliesProblem:When my computer restarts my mapped drive appears under My Computer. When I try to use it from code I get errors. If I open the mapped drive by double clicking it, and then try the code, it works. What I discovered is that when my computer starts the status, using net use, is
[code]...
I am trying to get the HDD Disk Drive information from the DeviceIOControl function with IOCTL_DISK_GET_DRIVE_LAYOUT_EX control code.
Here are the problems :1. The DeviceIOControl function returns(as from output buffer) DRIVE_LAYOUT_INFORMATION_EX structure. Which contains some data types i am unable to get.
[Code]...
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]...
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.
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 RepliesI am new to VB and playing with a program to display disk info attached to my PC. I have used WIN32_DiskDrive & WIN32_LogicalDisk to gather info regarding volumes, disks and partitions.
What I want to find how is how to relate the Device Index and Partition # back to a volume (ie with a drive letter).
I have seen examples of enumerating through the available drives on a computer to obtain information about the drives.
But how do you change the volume label of a specific drive?
I was thinking will it be possible to get a disk space of a remote and local machine using asp.net 2008?
View 2 Replieswas thinking will it be possible to get a disk space of a remote and local machine using asp.net 2008
View 6 Repliesi would like to know how locate the hard disk in a computer. For exemple I have 2 hard disk : C: and E: I would like to locate them and list them in a textbox for exemple.
View 11 RepliesIm having a problem loading a html file to a webbrowser in a program im writing. What it does if I press a button or menu item a form is loaded and a html help file is loaded to the WebBrowser1. here is the code
Public Class frmWeb
Private Sub frmWeb_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim path As String
[code]....
How do I load or display an Excel file located on the hard drive in vb 2005?
View 2 RepliesI used WNetAddConnection to map with a shared drive on another computer. But when I try to connect, I got an integer returned which is 53. After a while of searching in internet, I know that 53 means the folder is not found. Below are the code and parameters that I used.
<DllImport("mpr.dll", EntryPoint:="WNetAddConnection2A", SetLastError:=True, CharSet:=CharSet.Ansi, ExactSpelling:=True, CallingConvention:=CallingConvention.StdCall)> _
[Code]....
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.
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 RepliesI am using sound files in my project it is saved to my usb so when I use another computer I have to chang the location of the sound file I was wondering if there is a way so that when my project is put in to use the sound file location dose not have to be changed I mean is there a way to save it in to the prohere is my code
Private Sub frmplay_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
My.Computer.Audio.Play("F:\computer science\comp4\comp4\bin\song1.wav")
[code].....
I am trying to dial a computer from another computer using Modem for sending files and messge.Follwoing is the code done in dialing computer
Text1.Text = "Test string from App1 "
Number$ = InputBox$("Enter phone number:", "Number$")
If Number$ = "" Then Exit Sub
Temp$ = Status
[code].....
But after the dial tone, i am getting the exception "CTL_E_GETNOTSUPPORTED " at the line MSComm1.Output = Text1.Text?
I am loading a KJV.rtf file at program startup into RichTextBoxDisplay. When I want to select, lets say, Matthew Chapter 1, I want the program to take me to Matthew Chapter 1. I know I could just load a seperate file into the rtbDisplay, but do you know how many chapters and books are in the Bible..
View 2 RepliesI need to copy a file from a local computer to a remote computer on the network, if i try to use File.Copy without logon i get the following error:"Logon failure: unknown user name or bad password."How do I provide user name and password for file copy?
View 2 RepliesI created a program and published it using the wizard through the "Property" in menu.
When I used the Published program to Install it in my same computer it got installed in "StartMenu".
I didn't get the option to select the Drive for Installing it like what we get when installing other program.
how to make that option to appear on installing the program?
The following gives me an error when I try to open an Excel file if the value of lblFileName is different than the file on disk by differences of upper or lowercase letters.
[code]...
I have exe file that lunch a program takes 5 inputs. this exe locates in computer B and I need to execute it from computer A using VB.net customized application that pass the inputs through it.
View 3 Replies