By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

how to check folder exist or not to server2 from sever?Note: Server2 is not configure

P: 1
The code which I written is working fine when I try to check folder exist or not on server1. But When I try to check path exist on server2 or not it is not working. It always gives a message that folder does not exist.

-Please note Server2 don't have installed IIS.
-I am running code from server1 where IIS is installed.

<FORM method="post" encType="multipart/form-data" action="" > <INPUT type="File" name="File1"> <INPUT type="Submit" value="Upload"> </FORM>

dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject ")
if fs.FolderExists("\\Servre1\temp")=true then
response.write("Folder exists!")
response.write("Folder does not exist!")
end if
set fs=nothing
Nov 8 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.