Computing.Net > Forums > Programming > Check for file existance on server

Check for file existance on server

Reply to Message Icon

Original Message
Name: go_places_puterwize
Date: March 10, 2008 at 20:42:07 Pacific
Subject: Check for file existance on server
OS: Windows Vista Premium
CPU/Ram: AMD64 1.8Ghz Dual Core
Model/Manufacturer: HP Compaq Presario F700
Comment:

Hi, Its me again with yet another problem....
I'm making a program that checks for file existence on a server, and then compares the text from two textboxes to lines in a file on the server.. thing is it shows the error even though I installed my custom file on my site...

heres what I have:

If Not site_address.Text = "" Then


End If
If FileIO.FileSystem.FileExists("http://" + site_address.Text + "/" + "technetconf.trx") = True Then
FileIO.FileSystem.OpenTextFileReader("http://" + site_address.Text + "/" + "logininfo.trx", System.Text.Encoding.ASCII)


End If


If FileIO.FileSystem.FileExists("http://" + site_address.Text + "/" + "technetconf.trx") = False Then
MsgBox("This site does not support TechNet web folder security." + (Chr(13)) + "Please make sure you have installed the config file on the target server.", MsgBoxStyle.OkOnly, "Not Supported!")
End If
-----------------------
thats after a button click, but if the file exists is a login process, which I have done already.. is it because it can't check for a file on a server ? I don't want to use FTP.. this is for any site admins.. it lists changeable folders and allows access to files not accessible by a browser..

Any help?

Curiousity only injured the cat.
I finished it off..
Muahahaha...


Report Offensive Message For Removal


Response Number 1
Name: Razor2.3
Date: March 10, 2008 at 21:12:14 Pacific
Reply: (edit)

I don't think FileIO.FileSystem.FileExists() allows remote http addresses.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Check for file existance on server

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes Today.
Discuss in The Lounge