473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Directory Enumeration on a Network share

How can i traverse through the direcotries sitting on a Network share. i
used directoryInfo object, but somehow it does not work on UNC paths.
any kind of assistance is appretiated.

Irfan

Nov 15 '05 #1
2 1914
Hello

The DirectoryInfo object should work fine even with UNC path.
May be you are running the program itself from a Network Share. If this is
the case, either run the problem from local machine where it runs with
fulltrust or change the .Net framework policy to allow your program to run.

Best regards
Sherif

"irfan saeed" <ir***@enforsys.com> wrote in message
news:uU**************@TK2MSFTNGP09.phx.gbl...
How can i traverse through the direcotries sitting on a Network share. i
used directoryInfo object, but somehow it does not work on UNC paths.
any kind of assistance is appretiated.

Irfan

Nov 15 '05 #2
On Sun, 9 Nov 2003 16:22:08 -0500, irfan saeed wrote:
How can i traverse through the direcotries sitting on a Network share. i
used directoryInfo object, but somehow it does not work on UNC paths.
any kind of assistance is appretiated.

Irfan


If I remember correctly, you can take the UNC path and replace the start of
it with [computername]\c$\[retsOfPath] at least something like that. I'm
not sure, but in this case I remember someone solving it with a C$
somewhere at the beginning..
--
Roy Osherove
weblog: http://www.iserializable.com
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: AlexB | last post by:
I'm trying to access a virtual directory that I manually added under my ASP.NET application directory that maps to a network share. I created the V-Dir using the domain account and password that...
10
by: Wm. Scott Miller | last post by:
We have a intranet site that allows one of our departments to search a set of pdfs and then look at them. Only problem is that only they and us geeks should be allowed to see the pdfs. We have it...
3
by: rfontaine | last post by:
I have a virtual directory on IIS 5.0 to a remote share on a Windows 2003 file server. The "connect as" is a domain user account. The share as read permission for everyone and the NTFS permission...
4
by: William Sullivan | last post by:
I have an application that pulls images from a physical drive directory, creates a PDF of the image, caches the image, and returns a link to the client (using ajax, but that's not the problem). ...
2
by: BLetts | last post by:
I have an ASP.NET app that must allow users to upload files. The files are stored in a virtual directory. I use Server.MapPath to map from the virtual directory name to a physical path, then the...
1
by: Phil Barber | last post by:
using ASP.NET 1.1 int PID=(int)Session; string FilePath=PF.GetProjectPath(PID); if(!Directory.Exists(FilePath)) Directory.CreateDirectory(FilePath); the Directory.Exists always returns false...
0
by: AndyL69 | last post by:
Hello I've got a very strange Problem. When im adding a new ACE entry to a UNC Direcotry the inherented ACL's will be lost. When I'm adding a new ACE to a directory / file in this UNC path the...
0
by: CSharper | last post by:
On Apr 11, 10:35 am, "Peter Bromberg " <pbromb...@nospammin.yahoo.comwrote: Thanks.
3
by: =?Utf-8?B?Q2hyaXN0aWFuIGZyb20gRnJhbmNl?= | last post by:
I want to write an aspnet aspx page This page : 1 - Connect to a net share \\server\c$ with credentials: user/password 2 - Read Directory info of this share 3 - Write these infos in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.