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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Check for file existance on server

Reply to Message Icon

Name: go_places_puterwize
Date: March 10, 2008 at 20:42:07 Pacific
OS: Windows Vista Premium
CPU/Ram: AMD64 1.8Ghz Dual Core
Product: 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...



Sponsored Link
Ads by Google

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

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Check for file existance on server

FTP check to see if file exists www.computing.net/answers/programming/ftp-check-to-see-if-file-exists/14691.html

Bat file to check for multiple files www.computing.net/answers/programming/bat-file-to-check-for-multiple-files/19129.html

Run and compile Java file in VB6? www.computing.net/answers/programming/run-and-compile-java-file-in-vb6/15563.html