Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get highlighted text from a window e.g IE? Pin
Heath Stewart15-Sep-04 10:37
protectorHeath Stewart15-Sep-04 10:37 
GeneralRe: How to get highlighted text from a window e.g IE? Pin
fossmo16-Sep-04 11:17
fossmo16-Sep-04 11:17 
GeneralRe: How to get highlighted text from a window e.g IE? Pin
Heath Stewart16-Sep-04 11:57
protectorHeath Stewart16-Sep-04 11:57 
GeneralRe: How to get highlighted text from a window e.g IE? Pin
fossmo21-Sep-04 11:30
fossmo21-Sep-04 11:30 
GeneralSNMP Traps Pin
sin6715-Sep-04 9:58
sin6715-Sep-04 9:58 
GeneralRe: SNMP Traps Pin
Heath Stewart15-Sep-04 10:27
protectorHeath Stewart15-Sep-04 10:27 
GeneralRe: SNMP Traps Pin
sin6726-Oct-04 9:01
sin6726-Oct-04 9:01 
QuestionFile/Directory Exists? Pin
tdciDoug15-Sep-04 9:56
tdciDoug15-Sep-04 9:56 
This is really an ASP question, but since I'm using C#, I'll post it here. I'm having trouble accessing remote files (or directories) out of my application. I simply want to check if a file exists on the other machine, which is shared on the same network. No dice, always comes up false. I have set up the IUSR_ComputerName and IWAM_ComputerName accounts on the remote computer to match my IIS account. Still returns only false. I've mapped a drive to the network location, and then put that mapped drive into a virtual directory. In the IIS Administrator I can see the files I'm trying to reach through this virtual directory...but the application only returns false.

Here's the code from my application:

		<br />
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
	if (System.IO.Directory.Exists("Drive"))<br />
		Response.Write(Server.MapPath("Drive") + " Exists<br>");<br />
	else<br />
		Response.Write(Server.MapPath("Drive") + " does not exist<br>");<br />
}


Thanks for the help on this. If anybody knows another method of accomplishing this same task, I'm all ears. All I can report is that we don't want to run IIS on the remote machine, and we don't particularly want to spawn an application to take care of the file maintenance...we'd like for the code to handle it. Smile | :)
AnswerRe: File/Directory Exists? Pin
SandeepN15-Sep-04 10:24
SandeepN15-Sep-04 10:24 
GeneralRe: File/Directory Exists? Pin
tdciDoug15-Sep-04 10:36
tdciDoug15-Sep-04 10:36 
GeneralRe: File/Directory Exists? Pin
mav.northwind15-Sep-04 23:09
mav.northwind15-Sep-04 23:09 
GeneralUsing a application already open to display files Pin
smartyosu15-Sep-04 9:50
smartyosu15-Sep-04 9:50 
GeneralRe: Using a application already open to display files Pin
SandeepN15-Sep-04 10:47
SandeepN15-Sep-04 10:47 
GeneralRe: Using a application already open to display files Pin
smartyosu15-Sep-04 12:01
smartyosu15-Sep-04 12:01 
GeneralRe: Using a application already open to display files Pin
Heath Stewart15-Sep-04 14:22
protectorHeath Stewart15-Sep-04 14:22 
QuestionWhat does an end user need to run a C# 2005 beta compiled app? Pin
benjymous15-Sep-04 9:48
benjymous15-Sep-04 9:48 
AnswerRe: What does an end user need to run a C# 2005 beta compiled app? Pin
Nnamdi Onyeyiri15-Sep-04 10:28
Nnamdi Onyeyiri15-Sep-04 10:28 
GeneralFlash Movie on Forms Pin
Salman Taseer`15-Sep-04 9:46
Salman Taseer`15-Sep-04 9:46 
GeneralRe: Flash Movie on Forms Pin
Nnamdi Onyeyiri15-Sep-04 10:26
Nnamdi Onyeyiri15-Sep-04 10:26 
GeneralRe: Flash Movie on Forms Pin
eggie515-Sep-04 11:42
eggie515-Sep-04 11:42 
GeneralRe: Flash Movie on Forms Pin
Heath Stewart15-Sep-04 11:50
protectorHeath Stewart15-Sep-04 11:50 
GeneralExtract an ISO files to the local hard drive Pin
ntuyen0115-Sep-04 9:17
ntuyen0115-Sep-04 9:17 
GeneralRe: Extract an ISO files to the local hard drive Pin
Joe Woodbury15-Sep-04 14:17
professionalJoe Woodbury15-Sep-04 14:17 
Questionhow to build a web browser? Pin
DuyNguyen15-Sep-04 9:17
DuyNguyen15-Sep-04 9:17 
AnswerRe: how to build a web browser? Pin
Nnamdi Onyeyiri15-Sep-04 10:22
Nnamdi Onyeyiri15-Sep-04 10:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.