How To List Network Drives
Nov 4, 2011How to list all network drives.I have the below code, but is there any other alternates..[code]
View 6 RepliesHow to list all network drives.I have the below code, but is there any other alternates..[code]
View 6 RepliesI don't have any problem with the OpenFileDialog provided I set the .InitialDirectory to somewhere or other on my machine.However I just can't set the .InitialDirectory to a URL even as "http:localhost/..." ie my machine.Is there some way of getting the OpenFileDialog to see Network Drives, URLs, etc?
View 7 Replieshow can i map network drives using visual studio 2010?I would like to map multiple servers when running my program.
i.e
X:\ip or servername
Y:\ip or servername
would be automatically mapped into my computer when i run my program.
I am trying to manipulate files as part of a Document Management application that stores documents in a location on a Network Drives. But the My.Computer.FileSystem.Drives collection does not contain the Network Drives mapped on my machine. I have about half-a-dozen of these, but none of them seem to show up in the Drives collection and thus are not visible to the other FileSystem functionality I need to use for file management.
how to make sure the Drives collection contains all my drives? I am running VS2010 Premium edition on Windows 7 64-bit on a 64-bit Dell machine.
I'm trying to get a list of current hard drives (that part is done), but then go through the list one by one and remove those that have no size (dvd drives for example). I'm sure this is horribly wrong (4 errors are shown in the list). Could someone give me a hand?
Here is what I have so far:
ComboBoxHD.Items.AddRange(System.IO.Directory.GetLogicalDrives)
Dim dInfo As New System.IO.Directory
For Each drive As System.IO.Directory In dInfo.GetLogicalDrives()
[code].....
I configured access control list for the local drives using System.Security.AccessControl
I need to configure it for removable drive .
Im beginer for programming vb. show list folder on drives. for example, I have a form (listbox and button). If I click the button, the listbox will show list folder on drive C.
View 1 RepliesI am trying to come up with a good way to enumerate hard disks on remote workstations, possibly including administrative shares, so I can audit key files on them without having to access them via sneakernet.I have domain administrator rights. Security policy prohibits using WMI which would be a great solution.I can retrieve a list of computers using Active Directory, but I need some way to determine what drives are available on each system. Is such a thing feasible? A fellow developer offered some VB6 code from years ago that used WNetOpenEnum, but I was hoping that since we are at .NET framework 4, maybe there's a more elegant / managed way of working with this. I'm keen to use technologies that are more generally supported, such as standard APIs etc. WMI is a great solution but apparently is blocked by default by Windows Firewall, so its availability is not guaranteed.
View 2 RepliesHere is my idea so far: I have a bunch of computers connected in a local network. One of them is a MySQL server, one will have a vb.NET program wich will act as a "second server" and the rest will be different clients. What I want to do is that the "second server" will send out some kind of message or network package to some of the clients in the network, and they will execute a code based on what message it is, or what kind of package it is. I'll give you a simple example:
[Code]...
how to list network adopter in PC using VB.NET?
View 10 Repliesget a list of the servers avalible on the network, then check to see if those servers contain my database?
View 3 RepliesI want to get back to get a list of users on a network domain using VB.Net.
I will have the domain name available to me for use.
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 RepliesHow can i get a List of all Arivable Computers in my Network/Workgroup ? I need to add all to a Listbox
View 7 RepliesI wonder how do I list all computers on the network with vb 2008?I know to do in vb6 I have no more sense in vb 2008.
View 2 RepliesI've pulled basic information out of AD via System.DirectoryServices but cannot work out a method to find out currently logged in users?I would like to produce a list of users within a Group, highlighing those currently logged inactive.
View 1 RepliesI'm looking for a way to list all the PCs connected in a network (LAN).
View 8 RepliesIn games such as Warcraft III, you can play against players on LAN, and it can show a list of games being hosted by people on LAN. There is no central server that holds the entire list, so how does it get the list of games? And also, how would I code something that creates a game on LAN, like a bot?
View 6 Repliesthere anyway to retrieve the SSID of the network the pc's currently connected to or the list of available networks? I've googled for examples, but I only find vb.net 2005 examples that don't work in vb.net 2008
View 5 RepliesMy issue, however, is connecting to the wireless laptops as well.
[code...]
I need to grab a list of all networked computers, and I definitely include systems on the wireless
network in that list. I'm just not sure how to approach this. Being able to enumerate through a
'tree' of all networks and systems available would be a major plus.
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 RepliesI want to display all the drives and folders , and user can select the file also
i got this code from one of forum, but it is showing all the files but not folders and directives
{code]...
I want to get mounted and unmounted drives using vb.net. Using getlogicaldrives methods we can get mounted drive. but i want to get unmounted drives also.
View 1 RepliesI'm trying to show progress bars for the drive size but automatically get the number of drives abd and show progress bars for that number of drives. I've been playing with it for hours,
[Code]...
I am trying to use the WMI code generator, and it has given me some code, the idea is I want to see where the pagefile is and its size etc. The code I have is
[Code]...
Im coding an application that needs to list all computers inside my LAN, and get the status of the machines ex. Power On, Power Off.. in order to Wake On Lan, or Turn it Off.. im using Visual Basic .Net.I all ready listed all machines, now i need to get the status of them..
View 5 RepliesDisplay Size Of Logical Drives
View 23 Repliesi want to get all drives and their directories and sub-directories displayed on a tree view just as windows explorer.
View 1 RepliesSPECS: Visual Basic 2008 - SP1/2, Framework 3.0.3.5, Windows XP Pro, SP3? trying to wright code for checking for existing files but what has me stumped is the (WHAT IF PART) of it witch in fact is what I want to see. What im saying is can I find a file without knowing where it is on all drives? Or how can i find a folder if I dont know where they installed it to.
Example: I know that C:Perfect World International <--- is the default location where my game installs but what if I installed it on D:Perfect World International; or rather on drive G or H. How would I test to see if it exist without making a bunch of nested If statements to test every drive for it.
this also applies to files like: D:Perfect World EntertainmentPerfect World Internationalelementelementclient.exe is there a way to find these files to see if they exist. I know that Perfect world international does not use the program files to put there program files in as you see above. so Envirnment variables I think cant be used correct me if I'm wrong. BUT I know the registry of a computer keeps some stord information as to where these applications are installed to like (References App Data).
What I'm trying to do is use this to tell the user in a Label that the game is installed in this path but I know in some circumstances the game is not installed on drive C: or D: or even in this directory some users can install it in there own directory such as C:PWI. and as such the file elementclient.exe can even be in C:PWIelementclient.exe. So to sum it all up can this be found useing some sort of code to find the file and folder and return them both in 2 difrent labels like this
Game Is Installed In: C:Perfect World International
Game Client Name: elementclient.exe, C:Perfect World Internationalelement
Game Found On Drive: C:
ETC.
I'm thinking and keep thinking that this can be done in many ways but as for environment variables I'm stumped. But perhaps windows registry may play a role in doing this but I myself don't even know where this stuff may be found; and even more how to apply it to code.
I'm in need of a way to find the original path of a substituted (Virtual) drive, set with the subst command.
Start -> Run -> type "cmd"
[code]
subst l: c:\scripts
[\code]
This create a virtual drive that points to c:\scripts\
in .net an easy way to get all the drives on the computer is using the Drive property of My.Computer.FileSystem. However, this will give you the current substitued name of the drive. Is there a way to find the original path?
I get the path of the virtual drives mapped to network folders using WNetGetConnectionA of mpr.dll, However, this only resolves mapped network drives.
I currently don't have away to find the original path of LOCAL virtual drives.