473,545 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Directory.GetFi les(IP address)?

Hi,
I have been using Directory.GetFi les("g://"); in my c# application. But
now my boss want's me to do Directory.GetFi les(IP address);

I have been unable to figure out how to get this to work. Any sugestions?

Thanks,
Michael.

Aug 21 '06 #1
3 4324
I think you'll have to do Directory.GetFi les( @"\\server\file Share" ).

Andy

Michael wrote:
Hi,
I have been using Directory.GetFi les("g://"); in my c# application. But
now my boss want's me to do Directory.GetFi les(IP address);

I have been unable to figure out how to get this to work. Any sugestions?

Thanks,
Michael.
Aug 21 '06 #2
Michael wrote:
Hi,
I have been using Directory.GetFi les("g://"); in my c# application. But
now my boss want's me to do Directory.GetFi les(IP address);

I have been unable to figure out how to get this to work. Any sugestions?

Thanks,
Michael.
Hi Michael,

May I ask what you expect it to do, so we can give you a related example, or
point you in the right direction?

--
Hope this helps,
Tom Spink

Google first, ask later.
Aug 21 '06 #3
Not sure what exactly your boss wants , but if he wants you to use a UNC
naming scheme instead of a mapped network drive, you should do something
like:

Directory.GetFi les(\\servernam e\sharename);
where servername is the NetBios name or ip hostname (alias or a FQN DNS
name),
alternatively you can substitute the IP adress for the 'servername' like:
Directory.GetFi les(\\192.168.0 .100\sharename) ;
,which is a bad idea even if the IP address never changes.

Willy.
"Michael" <Mi*****@discus sions.microsoft .comwrote in message
news:C9******** *************** ***********@mic rosoft.com...
| Hi,
| I have been using Directory.GetFi les("g://"); in my c# application. But
| now my boss want's me to do Directory.GetFi les(IP address);
|
| I have been unable to figure out how to get this to work. Any sugestions?
|
| Thanks,
| Michael.
|
Aug 21 '06 #4

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

Similar topics

3
2525
by: xEM | last post by:
I have in Apache2 (win32) aliased directory, for example: Alias /ftp/mp3/ "D:/mp3/" <Directory "D:/mp3"> .... </Directory> Address to this directory will be: http://localhost/ftp/mp3/ How can i list files in that directory?
2
1420
by: J.V. | last post by:
Can I make the files in a subdirectory of wwwroot address like they were in wwwroot? I have a subdirectory in wwwroot named colors and in it is index.asp, and a sub directory named red. Can I make it so that a link in a file in red can access index.asp with href="/index.asp" rather than "../index.asp"?
1
3794
by: xixi | last post by:
i have catalog a remote database on my local db2 server, but now the remote database server with same machine name but the ip address changed, so i remove the old one, and try to catalog again under control center --- all cataloged systems, then i use discover search button, find the sysetm name, but gives me error SQL30081N A...
4
1831
by: Andrew Banks | last post by:
I'm going to have an admin section to a site I'm developing using ASP.NET C# I want to restrict access to this directory based on username and password (I've got that bit done) but also upon the IP address of the user accessing it. I only want my IP to get access to this directory but my IP may change from time to time so this should be easy...
16
11751
by: B Letts | last post by:
Hi - I'm currently using the FileUpload control to allow people to upload files to my website. This all works fine, as long as I'm going to a physical path on my server. However, I need to allow people to upload to a virtual directory. The directory may or may not exist on the same server as the Web site. I can't seem to figure out how...
1
1142
by: John_Baptist | last post by:
Hello, I have created a virtual directory in IIS 6.0 with the name JohnASP . Now my problem is when i'm creating new ASP.NET project in MSVS .NET in the location place which name i should give either Folder Name or Virtual Directory Name ie ( http://Localhost/ < Alias-Name of virtual directory or actual Folder Name (JOHN in D drive) > ...
7
5310
by: Chris Fulstow | last post by:
Hi, I need to restirict access at the page level to a range of IP addresses. What's the best approach? I thought of building an HTTP module that could compare the requesting IP with a restricted range, specified in web.config. Any thoughts? Thanks, Chris
2
1900
by: pranshu | last post by:
Hello All, I have a web application which I need to deploy on a particular web server on a machine having different web servers on different IP addresses. I havent been able to find a way to do this. However, we can chose a port on which we can do a deployment. Now the only way that I have been able to think of so far is to - Create a new...
5
1139
by: unionhorse | last post by:
Addresses, phone numbers and email changes are updated from a musicians form to a DirChanges Table. Every quarter these changes are filtered by date parameters (i.e from 1/1/09 to to 3/31/09) on a report that gets data from a query. The report is published in our journal, the Keynote. I am trying to get only the latest changes per musician...
0
7479
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7411
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4962
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3468
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.