473,657 Members | 2,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Finding Youngest File in Intranet Folder

Hello Everybody,
Is there a class equivalent to DirectoryInfo and FileInfo where I can
pass a http:// URL instead of a network path in order to find the
youngest file within an Intranet Folder.

I'm using this for FileShares:
DirectoryInfo di = new DirectoryInfo(s trURL);
FileInfo[] fileList = di.GetFiles(str Pattern);
and then I compare the LastWriteTime of all the files in the array.

But strURL only accepts \\server\folder paths and not
http://WebName/folder

Thanks in advance
Rosa
Nov 15 '05 #1
2 1591
Rosa,

There is nothing in the framework which does that. You will have to
perform the processing yourself or find a third party component that will do
it for you.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Rosa" <Ro**********@h otmail.com> wrote in message
news:39******** *************** **@posting.goog le.com...
Hello Everybody,
Is there a class equivalent to DirectoryInfo and FileInfo where I can
pass a http:// URL instead of a network path in order to find the
youngest file within an Intranet Folder.

I'm using this for FileShares:
DirectoryInfo di = new DirectoryInfo(s trURL);
FileInfo[] fileList = di.GetFiles(str Pattern);
and then I compare the LastWriteTime of all the files in the array.

But strURL only accepts \\server\folder paths and not
http://WebName/folder

Thanks in advance
Rosa

Nov 15 '05 #2
Thanks Nicholas,
I will just try to access the \\server\c$\www root\... and do it that way.
Cheers
Rosa

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:<OK******* ******@TK2MSFTN GP11.phx.gbl>.. .
Rosa,

There is nothing in the framework which does that. You will have to
perform the processing yourself or find a third party component that will do
it for you.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Rosa" <Ro**********@h otmail.com> wrote in message
news:39******** *************** **@posting.goog le.com...
Hello Everybody,
Is there a class equivalent to DirectoryInfo and FileInfo where I can
pass a http:// URL instead of a network path in order to find the
youngest file within an Intranet Folder.

I'm using this for FileShares:
DirectoryInfo di = new DirectoryInfo(s trURL);
FileInfo[] fileList = di.GetFiles(str Pattern);
and then I compare the LastWriteTime of all the files in the array.

But strURL only accepts \\server\folder paths and not
http://WebName/folder

Thanks in advance
Rosa

Nov 15 '05 #3

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

Similar topics

1
8787
by: Richard C Buchanan | last post by:
I have a table as follows: - user_id (key) - user_email_address (text) - user_request_date (text) - user_sent_date (time/date) An automated macro will run every 5 minutes and needs to run a SQL UPDATE that:
2
1696
by: lanny.moffett | last post by:
To all, I am using a macro in Access 2000 to run a report, merge the results with an HTML template, and store the results. All of this works fine as long as the "Template File" field contains a standard file path name, like "C:\folder\template.html". However, I would like to specify a path to our intranet Web server as a URL, like "our.intranet/folder/template.html". When Access cannot locate the HTML file, it simply outputs the...
1
1485
by: Yama | last post by:
Hi Is there a way using an Intranet ASP.NET web application to access a text file from a specified folder The Logic ReadTextFile.asp ------------------- FILE = "a_comma_delimited_text_file.txt PATH = "C:\folder\subfolder\
3
2129
by: sanjeeev | last post by:
I am loooking for the bet way to share files between Internet and Intranet application in real time, means as soon as an file is uploaded to the intranet application it should show up in the internet application. Thanks,
2
4743
by: createdbyx | last post by:
I am trying to make a file sync utillity to sync files between my laptop and my desktop pc. On my desktop machine (xp pro sp2) I have shared my "Visual Studio Projects" folder using windows simple file sharing. And have specified the "Allow network users to change my files." option as well. Then on my laptop (xp home sp2) I have mapped a network drive using windows explorer. So on my laptop I have a Y: drive that points to the "Visual...
0
1883
by: NSF12345 | last post by:
Iv developed a small program that looks for a file over our network, and copy it to the location of another computer. Im using the "If FileExists("\\oldpc\main share\Folder\file.txt") Then" way of finding if the file exists, but i want to make it so that it tries to look for the computer, not the file. At the moment this is how i am finding and copying the file: If FileExists("\\oldpc\main share\Folder\file.txt") Then FileCopy "\\oldpc\main...
2
2881
by: Mark Rae | last post by:
Hi, Just looking for some advice and/or recommendations here. Scenario is corporate private intranet, ASP.NET 2 on Win2K3S, SQL Server 2005, WinXP + IE6 on all client desktops. Client has a folder structure on a separate file server (which the IIS box can see) containing many corporate documents (in PDF format) arranged in subfolders e.g.
2
2375
by: Gerhard | last post by:
I have a .net application that I want to run in a DMZ, with the SQL Server and file system behind another firewall. Is there a secure way to get to files from my application, or would it be better to have a reverse proxy server in the DMZ and the webserver behind the second firewall?
2
4117
by: watcher248 | last post by:
I'm new to Access so please be kind...I'm trying to determine oldest and youngest employee, I'm sure that the line below is copied verbatim, any ideas I would be most grateful, and so would my shrink. Thank you Oldest:Max (DateDiff('m', Date)/12) Youngest:Min (DateDiff('m',Date)/12)
0
8384
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8302
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8601
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4150
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.