Listing Shares From "My Network"

Jul 27, 2009

I have scoured Google to find some examples - but they are either completely cryptic (I'm not afraid of Windows APIs either) or don't seem to work. I want to build a list of available shares from my network. I will filter them before I present them to the user. It might work if there was a simple way to get the network folder so I could enumerate them like regular folders...

View 3 Replies


ADVERTISEMENT

Listing All Available / Visible Network Shares

Jun 11, 2008

FI am working on a program that will help clients map a network drive by listing all available/visible network shares and allowing the user to select a share to map to. I have already created a basic VB script that will map a drive using a specified location. I have searched and read everything i could find and it looks like this can only be done by calling an API function but am unsure how to do this. [code]

View 10 Replies

Listing Mapped Network Directories

Jun 21, 2011

How do I get all of the mapped network drives (shared ones) like the ones that a person would see in Windows Explorer? That is,

Network Places
Computer 1
Shared Folder

Computer 2
Shared Folder 1
Shared Folder 2

Is there a command or an API function that I can use to get at least the names of the computers and its folders?

View 1 Replies

VS 2010 - Listing Network Directories

Feb 20, 2012

I have a page in VB.NET that is hosted with IIS 7 on Windows 7 Home Premium. The page has code in the Page_Load event that scans through a directory and adds all sub directories to a drop down list. When testing through VS2010, it works perfectly. However, when I set the site up in IIS, the page loads correctly but nothing is added to the drop down list. My current code is: [Code]

View 3 Replies

Creating Document Management Structure Using Hidden Shares

Jun 9, 2010

I need to add some document management functionality into my software. Documents will be grouped by company name and project name. The folders need to be accessed by the application using the id numbers of clients/projects, but also easily browsed by the end user using windows explorer. Clients and Projects will be stored in a database. I am thinking of having the software create the folders using the friendly name and then using a hidden share with the id number for the software to access the files. [Code]

By using the hidden share, if the company name changes or its renamed for some reason it doesn't break the link in the application because its using the hidden shared based on the ID that never changes. Will having hundreds (maybe thousands) or hidden shares on a server provide a huge performance hit? Does any one have any suggestions or alternatives to provide this feature?

View 1 Replies

Directory Listing - Write A Simple Program That Will Let Me Choose A Directory And Get A Listing Of All Files?

May 8, 2010

All I am trying to do is write a simple program that will let me choose a directory and get a listing of all files in that directory and its sub-directories and show it in a RichTextBox. I got as far as being able to select the directory but when I click "OK" I get "access to c:documents and settingsstevedesktopmp3 is denied".The code I am using is listed below.

Imports
System
Imports[code].....

View 10 Replies

VS 2008 Network App - Send Message Or Network Package To Some Of The Clients In The Network

Aug 18, 2009

Here 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]...

View 6 Replies

VS 2008 My.Computer.Network.Ping() Cannot See Network Under Windows 7

Nov 18, 2011

I have a .NET 2.0 *.dll that calls My.Computer.Network.Ping(). The *.dll is then run out of an *.exe via AppDomain.CreateDomain() and Invoke(). The problem is that this works just fine under Windows XP but under Windows 7, I get an exception saying that no network connection is available. I tried the Ping() call out of a small console application under Windows 7 and it works just fine.

[Code]....

View 6 Replies

.net - Using A FileStream On A Network When The Network Drops?

Mar 26, 2012

I am writing some code as part of a framework for opening a file.The file is of custom type and should not be opened by more than one instance of my application. To stop multiple file opening I use a filestream to create a lock file and then keep said filestream open. This seems to work in preventing another instance of my application from opening the file ( as it will fail in recreating the lock stream in the files open code ) but if the file is on a network share and the network drops then the original application also can not access the file any more.The code to get the lock stream is as follows:

Try
' We need to keep this stream alive to prevent other applications gaining access to the lock
mLockStream = New FileStream(mLockPath, FileMode.CreateNew, FileAccess.Write, FileShare.None)[code]....

In this I create the lock stream the first time round and then if another application tries to create it, it throws an exception and stops them from getting any further. This is kind of how it needs to work, unfortunately as I said, if this is done across a network and then the network connection is dropped for some reason then I can not delete the lock stream as I get an IOException telling me a process cannot access the file as it is open in another process ( which shouldn't be happening I don't think).

View 1 Replies

.net - Listing All Sub Directories?

Jan 18, 2012

how to list all subfolders in vb.net. i want to put it on a listbox, i have created a code but it only search on the current location, and does not include subfolder. here is my code,,

Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

[Code]....

View 2 Replies

Listing More Than One Value On ComboBox?

Mar 12, 2010

I came across this on a VBA written program and was wondering if it is possible to do the same on visual basic with the divider?So far I tried to populate a combobox using sqldatareader but can't get the same result.

View 1 Replies

Get A Listing Of A Directory File?

Jul 16, 2010

how to get a listing of a directory file, listed by bytes in basic? I'd like to how write a dump utility and no not of any particular diectory. I am interested in dumping directories in general.

View 1 Replies

How To Put Listing Of Files Into Menu

Mar 22, 2010

I have a folder with .txt files in it. How can I make my menuitem get those .txt files and put the filenames in the menuitem, so that it creates a list of all .txt files in that folder. So when I put a .txt in the folder the program automatically creates the menu item.

View 1 Replies

Listing Available MySQL Databases?

Jan 29, 2009

Is it possible to list the available MySQL databases on a computer?At work we run a model that generates a MySQL database full of results, 360 odd tables, when the model is a MySQL database is created containing the results and what I need to do is to be able to list all available databases, allow one to be selected and transfer all of the tables to a blank Access database cretaing the relationships once all of the tables have been created.The tables contain all the primary keys and foreign keys, eg Table1 may contain cust_Numb and table2 may contain cust_numb_pkey.Is this possible?Initially I asked this on a ACCESS forum, but am hitting a few brick walls so thought I'd ask on here as well.

View 2 Replies

Listing Department And SubDepartment?

Jun 5, 2010

I am trying to read infofmation from the database where i list each department and thier subdepartments in the database so i have all departments and subdepartments in one database Called Departments there is also a field called SubDeptID the SubDeptID will have the value 0 if the department is a parent or a top level other wise it will have it's parent DeptID now i used 2 function to try to create this - it seems that the function add only the parents to the listbox but not the childrens?

here are my functions

Code:

Public Shared Sub FillDepartment(ByVal DropName As Telerik.WinControls.UI.RadListBox)
Dim displaymember As String = "DptName"
Dim valuemember As String = "Deptid"

[code]....

View 19 Replies

Listing Files In Treeview?

Nov 7, 2010

I have created my own file system that is used for heavily encrypting all files on the drive. It has to use up to 7 partitions though. What I need it to do is add all partitions/directorys/files to a treeview. Something like this:

for each partition as safTfiles.partitions.partition in drive
add_partition()
for each folder as safTfiles.folders.folder in partition
add_folder_to_partition

[code].....

so it need to be able to click on a treeview node and expand, showing all subdirectorys and files.

View 3 Replies

Listing The Sub Directories In The List Box?

Jul 29, 2009

why my code is not listing the sub directories in the list box?

Public
Sub SubDirButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubDirButton.Click

[Code].....

View 6 Replies

Looking For Client Listing Code?

Dec 10, 2009

I am using Visual Basic in Visual Studio 2010.I need a code which will find clients opened on my computer Then put them in a list.How do I do this?

View 6 Replies

Loop Through A Directory Listing?

Feb 7, 2010

How can I loop through a folder getting each file listed and when its date/time?

View 1 Replies

Directory Listing In Date Order?

Dec 7, 2009

I am using the following to get an array of a directory. I was recently told that I needed to process my files in date order.

Dim filelist() As String = IO.Directory.GetFileSystemEntries(CustomerDirectory, ConversionWildCard)
For Each filename As String In filelist
'do conversion here
Next

how I can get the list of files in date order?

View 3 Replies

Filter Files From A Directory Listing?

Mar 15, 2011

I need to write a process which filters out 'old/dead' job files from a directory (actually two directories). This process needs to 'read' a number pattern (in a fixed position) off the filenames (for which there will almost certainly be duplicates), and having then 'got a list' of unique number patterns, give these to a function (which I already have) which will give a boolean, from which I can decide to either delete those files whose name contain this particular number pattern or not - this is intended to be run each night (windows task scheduler). Example directory content is:

[ode]...

I know I can get a listing using Directory.GetFiles(dirpath, "SUB_*.xml") but am stuck on how to go about the rest.

View 10 Replies

Get A Listing Of All Of The Sub/functions In A Class/module?

May 2, 2009

if anyone knows if I can get a listing of all of the sub/functions in a class/module. Just the definitions (That is, the name, paramaters etc., but not the code).

View 3 Replies

Hierarchical Directory Listing From A File

Jun 25, 2010

I'm trying to find an easy to create a hierarchical directory structure that I can put in a TreeView, with two caveats:

1) The file list is from a file

2) The paths are un *nix format (e.g. /dir/dir/file rather than c:dirdirfile)

I found this ([URL]) which would do what I want...if not for the two caveats above. I can go through the process of tokenizing the paths and start creating linked lists of objects for a directory structure, but before I do that I'd like to find out if anything else is available...

View 3 Replies

IDE :: Pretty Listing (reformatting) Of Code?

Mar 10, 2006

In VB6, I used to declare my variables like this:

Dim x As Integer

Dim iLongName As Integer

i.e. All the types tabbed to line up.When I click "Pretty listing (reformatting) of code" in settings, it won't let me do this - and without "Pretty" switched on, the code is a mess (as a VB programmer, I'm not used to having to do things myself).Is there any way to configure this all or nothing option so I can get the best of both worlds?

John

PS. Sorry if this sounds trivial.

View 5 Replies

Listing All The Variables In A Flash Game?

Jun 25, 2009

I have currently been making a scanner for my flash games that scans the game, finds and lists all the variables.

It would take a tremendous amount of time to brute-force the variables but there are some tools like:

[URL]

...That somehow scan the actionscript or something like that and find all the variables in the flash movie.

How can i do this in VB2008?

View 3 Replies

Listing All Video Capture Interfaces Of PC

Sep 17, 2009

I need a script that list all the Video Capture Interfaces of a PC, like web-cams or TV cards. Is there a way to do this using VBScript? If yes, any way to start?

View 1 Replies

Listing RAR Files From Sub Directories Into ListBox

Feb 23, 2010

I'm having a problem when I list .rar-files into a ListBox. I can list .rar-files OK from subdirectories, but what I want to determine if the file is actually the first part of .rar-archive. The new .rar-format packs files like:
Archive.part01.rar
Archive.part02.rar
Archive.part03.rar
...

So I have no idea when I'm listing the first part of the archive or actually listing the other parts.
Function UpdateFiles(ByVal FolderPath As String) As Boolean
'If FolderPath is empty, return false
If FolderPath = "" Then
Return False
End If
[Code] ......

View 1 Replies

Prefilter Items Before Listing In Listbox?

Nov 26, 2009

Currently one my current project has 4 listboxes (1 big and 3 smaller) of the 4 listboxes 3 of them(smaller ones) are populated on load with file names from a specific directory.

'setting up root parts
Dim ordernum As String
Dim boekje As String

[Code].......

View 1 Replies

Program Not Listing Files In Directory

Jul 25, 2011

I have a problem with my application. The following method lists all files with the extention "*.wgmp" in a specific directory.[code]....

View 2 Replies

Recursive Directory Listing Of FTP Server

Apr 9, 2011

I wrote some code yesterday which shows a directory listing of an FTP server and if you click on a folder it will show that directory and their is a back button. But I dont think it is efficient and I can tell there will be a lot of errors.

Imports SylentUpload.Utilities.FTP
Public Class Form3
Private DirectoryHistory As String = "/"
Private DecryptedUsername As String
Private DecryptedPassword As String
[Code] .....

View 3 Replies







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