Get List Of Fixed Disks In Computer

Jan 27, 2010

I need to write an application that does the following, and I figured it was a good opportunity to write my first VB.Net application:

1. Get the list of fixed disks in the computer
2. For each disk, recurse through all its directories and sub-directories looking for filenames that match a given regex (eg. MyFile.d{3})
3. If found, hash this file to get a unique ID, eg. MD5 (just to check if this file already exists elsewhere)
4. If this file hasn't already been seen elsewhere on the disk, copy it to a central directory

View 2 Replies


ADVERTISEMENT

Get The List Of Fixed Disks In The Computer?

Jan 27, 2010

I need to write an application that does the following, and I figured it was a good opportunity to write my first VB.Net application:

1. Get the list of fixed disks in the computer

2. For each disk, recurse through all its directories and sub-directories looking for filenames that match a given regex (eg.MyFile.d{3})

3. If found, hash this file to get a unique ID, eg. MD5 (just to check if this file already exists elsewhere)

4. If this file hasn't already been seen elsewhere on the disk, copy it to a central directory.

View 2 Replies

A Disk File Listner Lists All Files On All Disks On Local Computer?

Jul 27, 2010

I'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].....

View 19 Replies

Modifiying Code To List All Disks?

Jul 21, 2011

I have the following code in my app to show free space / disk size and SMART status for a hard disk How can I modify it so that it lists all disks and shows the above info for each one

[Code]...

View 11 Replies

DB/Reporting :: OLE Database Access - Move My Programs And The Database To Another Computer And Hard-disks

Apr 21, 2008

I want to move my programs and the database to another computer and hard-disks. It looks to me as though I nearly have to re-create the controls and rewrite some of the code to make it so the programs still work after the move. At least with ODBC all I would change was the DSN definitions external to the programs. Is there an easy way to move or rename a database without loads of work?

View 3 Replies

Parameter Of Function/sub From A Fixed List?

Nov 28, 2011

I have been a VB user for quite a long time starting from dos-basic types. But only now I encountered with a quite a newb problem :) I tried to search MSDN for it for about a few days and at the end I have to ask this question here because I could not find anything about it.

From time to time I use functions or subs where one parameter is a word from a defined list.

E.g.

private function my_function(byval THE_PARAM as string) as ..........

where THE_PARAM could be "work", "home", "bus", etc. 5 words all together.

How can I define a function so that when I use it on the text of the program I had a hint not just like "THE_PARAM is a string", but I had a choice of those pre-defined words, so I could choose a word from that list.

View 3 Replies

Item Cannot Be Added To A Read-only Or Fixed-size List?

Jun 11, 2010

I have two datagridviews in my app. They're related. When there is no record in the parent datagridview, I select the "New Row" and then press the Add Button in the child datagridview's bindingnavigator. Then I get that exception:

InvalidOperationException: Item cannot be added to a read-only or fixed-size list.

I know why this happens.When I add new record to child datagridview, parent datagridview's new row loses focus and then delete row. So this error occures.How do I prevent my program from this exception. Remember, it's only occures if there is no record in the parent datagridview.

View 1 Replies

SendMessage API - Send "list Disks" Follow By An "Enter"?

Jan 29, 2012

provide me with an example of SendMessage API to do the following.

1) I have a form with a button to execute c:windowssystem3diskpart.exe.

2) After diskpart executes hidden, I want to send "list disks" follow by an "Enter"

Dim MyProcess As New Process()
btnMakeFlashDisk.Enabled = False
MyProcess.StartInfo.UseShellExecute = False [code]....

View 2 Replies

Eject USB Disks And CM_Request_Device_Eject?

Aug 5, 2010

i have been looking for a way for my application to 'safely remove hardware' or to eject the USB key specified, the application detects the removal and arrival of new devices but i am stuck on being able to eject them. So far my research has lead me to using setupapi.dll and CM_Request_Device_Eject and i have declared

Private Declare Function CM_Request_Device_Eject Lib "setupapi.dll" Alias "CM_Request_Device_EjectW" (ByVal dnDevInst As IntPtr, _ ByRef pVetoType As PNP_VETO_TYPE, ByVal pszVetoName As IntPtr,ByVal ulNameLength As Integer, ByVal ulFlags As Integer)

As Integer I usually code in asp for web application and have no idea how to use these types of unmanaged functions I made my function that takes the drive letter to eject by parameter

Public Function EjectDevice(USBDriveLetter as string) As Integer
'TODO USE CM_Request_Device_Eject() to eject the drive
End Function

I found pinvoke.net: cm_request_device_eject (setupapi) this info on pinvoke for CM_Request_Device_Eject() but i am clueless on how it works and the vb.net section looks portly documented...

View 11 Replies

Read From Physical Disks

Mar 28, 2009

how I can Read data from Hard disk or flash card, etc., and save read data in .bin file.

View 2 Replies

Get A List Of Users On Computer?

May 19, 2010

I am trying to get a list of users on my computer Example of what I want;

UserNames:all users

Weather they are active or not IE active:yes Total users: Example 4 I am using a ListView to display the information just not sure of the coding?

View 1 Replies

Using FileSystemWatcher For Monitoring Connected External Hard Disks

Nov 13, 2011

i tried several ways to monitor the File System of one of the external drives that are connected to my PC using the FileSystemWatcher. But nothing seems to work..[code]

View 2 Replies

How To List Name Of Software Installed On Computer

Jul 9, 2010

With the following code I can list the display name of all software installed on a local machine.

'Declare the string to hold the list:
Dim Software As String = Nothing

'The registry key:
Dim SoftwareKey As String = "SOFTWAREMicrosoftWindowsCurrentVersionUninstall"
Using rk As RegistryKey = Registry.LocalMachine.OpenSubKey(SoftwareKey)

'Let's go through the registry keys and get the info we need:
For Each skName As String In rk.GetSubKeyNames()
Using sk As RegistryKey = rk.OpenSubKey(skName)
[Code] .....

What I need is to get the FileName
to be used to start the application like notepad.exe and not just the displayname
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = filename & ".exe"

View 7 Replies

List (ONLY Online) Computer In A Network?

Dec 29, 2011

I'm working in a project and i need to list only the online computers in my network and put them in a listbox how can i do this

View 5 Replies

List All Programs Installed On Computer

Aug 15, 2011

instead of all listed in the registry key, "Microsoft Digital Image Library 9" doesn't even show in installed programs list. [Code]

View 2 Replies

Get A List Of Users On My Computer And Assign Them To A Combobox?

Nov 1, 2009

How can I get a list of users on my computer and assign them to a combobox?

View 4 Replies

How To Open Programs On Computer Viewed In A List

Aug 21, 2009

is it possible to have the open programs on my computer viewed in a list, and have the abbily to minimize and restore if so, what are the codes for it and what do i have to attach it ro (butten etc) it is for my OS i am making.

View 1 Replies

List Groups Computer Account Is A Member?

Nov 12, 2009

I notice you have an example code of listing groups Ad computer Accounts are a member of in c#, do you have an example in vb

View 2 Replies

VS 2010 : List All User Profiles On A Computer?

Nov 20, 2011

I have vbscript code that enumerates user profiles from this registry path:

HKLMSOFTWAREMicrosoftWindows NTCurrentVersionProfileList.

How can this be done using Visual Basic 2010? Is there a class or method that I would use to accomplish the same thing or would I have to read the registry path into an array as you do with vbscript? My application will be ran on the local computer just so you know this information is not being gathered from across the network. I have been looking for awhile and haven't found anything that will work so far.Once I have the user profiles from the computer, I will populate this list into a drop-down combo box.

View 2 Replies

Code - Suposed To Go Through All The Computer Names In A List Box And Ping Them

Apr 9, 2009

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Counter As Integer

[CODE]...

The code is suposed to go through all the computer names in a list box and ping them.

View 8 Replies

VS 2010 Computer.FileSystem.GetFiles - List Files Without Their Paths?

Feb 15, 2011

This has to be simple, but can't find the answer.I want to display a list of all files from a folder in a listbox. Easy..., but I want to display only the filenames without their paths.

For Each foundFile As String In My.Computer.FileSystem.GetFiles("C:My Folder")
ListBox1.Items.Add(foundFile)
Next
This gives me list looking like that:
C:My Folderfile1.txt
C:My Folderfile2.txt

[Code]...

View 1 Replies

Get A List Of Running Applications On A Computer Similar To What Task Mangager Does In Windows?

Jul 22, 2011

I know this code will give a list of processes
ListBox1.Items.Clear()
Dim ProcessList As System.Diagnostics.Process()

[code].....

View 3 Replies

Create A "virtual" Folder On Many Hard Disks?

Apr 9, 2011

Is it possible to create a folder that spans over many hard disks?in such a way that the application considers it as a standard folder but the data are distributed on more than one hard disk?

View 3 Replies

VS 2008 : Get Network Computer's Printer List And Printer Info?

Dec 7, 2009

get a list of printer's (name,port,model) from a computer over the network. I know how to list my own, but it's from querying the Win32_printer object on my machine, I need to be able to do something similar on a remote machine.

View 4 Replies

Sockets - Check That If Another Computer In The Network Send Some String Data To The Listener Computer?

Mar 19, 2012

i have a task to create a TCP Server (a program that is listening on its network card interfaces for incoming data stream).I have search on the internet and i found that i can use two methods : Socket or TCPListener class.I have created an example for Socket class, but i wondering how could i test it? I need to check that if another computer in the network send some string data to the listener computer , then this message should be displayed.Here is the example from microsoft that i am using for TCP Server using Socket:

Public Shared Sub Main()
' Data buffer for incoming data.
Dim data = nothingc[code]....

But it does not work because of the PORT setting.If in the TCP Server i have "Dim localEndPoint As New IPEndPoint(ipAddress, 0)" the client crashes, but if i change the port from any (0) to 11000 for example,the client works fine.Do you know why?

Later edit2:Maybe i should have started with this question:Which method is recommended for my scope?asynchronous or synchronous method ?

View 2 Replies

Developing A Computer Application Designed To Monitor The Network And CPU Statistics On A Computer?

Jan 29, 2009

I am developing a computer application designed to monitor the network and CPU statistics on a computer remotely. The monitored computer would have my program installed and the monitoring computer would display, in a form, the information being sent from the remote client.The application does not send any information regarding packets, user names, passwords, etc. It is solely meant for monitoring CPU performance and Network resources remotely.

What would be the best method to send this information over to my host machine?I am programing in Visual Studio 2008 on windows XP. The client machine is also XP. I know this sounds a little shady, but it is required for my little business (http://www.iquorum.net) to monitor what and when something happens on our machines when I and my employees are away.

View 2 Replies

VS 2005 : Dial A Computer From Another Computer Using Modem For Sending Files And Message?

Jul 11, 2009

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?

View 6 Replies

Access The Data Coming To The Computer From The In-built Bluetooth Module Of A Computer On Windows Platform?

Feb 4, 2011

i have encountered a problem, i want to access the data coming to the computer from the in-built bluetooth module of a computer on windows platform, this data has been sent by a remote bluetooth module say a by an autonomous device (just like a bluetooth mouse connecting to the computer). The to be sent is in the form of numbers and i need these to manipulate on the computer.

View 6 Replies

VB - Desktop Computer With Cable Connection On Back Allows To Watch TV On Computer Using Windows Media Center

Jun 12, 2010

I have a desktop computer with a cable connection on the back that allows me to watch TV on the computer using Windows Media Center. I had the idea of writing a program that would access this feed and send it to another computer (laptop) via my network. That way I would be able to watch TV from anywhere that my network spans. I have no idea if this is possible or how I would even do it,

So I have three questions.
1: Is it possible?
2: How would I go about access the feed?
3: How would I send it over the network?

My original thought was doing it in Flash, but I'm not very good at Flash so I wanted to do it in VB.Net.

View 2 Replies

Copy A File From A Local Computer To A Remote Computer On The Network?

Dec 19, 2006

I 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 Replies







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