473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

1
Hi,
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.

File:Form.asp
<FORM method="post" encType="multipart/form-data" action="https://bytes.com/Upload.asp" > <INPUT type="File" name="File1"> <INPUT type="Submit" value="Upload"> </FORM>

File:Upload.asp
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject ")
if fs.FolderExists("\\Servre1\temp")=true then
response.write("Folder exists!")
else
response.write("Folder does not exist!")
end if
set fs=nothing
%>
Nov 8 '16 #1
0 2805

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

Similar topics

2
by: Lin Ma | last post by:
Greetings, Is it possbile to check a file exist without using Server.CreateObject("Scripting.FileSystemObject") in asp page?? The reason is our hosting company turn that function off for...
7
by: andylcx | last post by:
Hi all: The c++ language can check whether the file exist or not. I am wondering how c language does this job? Thanks a lot! Andy
1
by: kelkel | last post by:
i am writing a Console app, it needs user to input a path. the problem is how can i validate the user input path is valid or not? many thanks.. Kel
1
by: Tee | last post by:
Hi, question as subject, can we detect a folder existence on the server ... and another question, how to know current application folder ? thanks, Tee
1
by: scprosportsman | last post by:
Please help guys, i am trying to set up a database here at work and im fairly new to access in terms of writing functions and queries and stuff. I have 2 different places on my design that will...
10
exoskeleton
by: exoskeleton | last post by:
hi dear experts, hope you can help about checking the folder size,for example how many kilobytes is it already in PHP script...is it possible? please help..thank you
3
by: gracepaul | last post by:
hi, is it possible to check whether a particular folder exists in the client machine from the server. if the folder exists then i have to do some steps or else i have to do another. is it...
1
by: abhimusale | last post by:
Using C# for an application in which I am working on, I need to check the available folder is shared or not. How to check it? Thanks!
1
by: Adya | last post by:
Hi all, I have a list of files starting with a 4 digit code as below, 1) MI01_xxxx_xxxxx.pdf 2) MI01_xxx.pdf 3) MI01_xxxxx.pdf 4) MI03_xxxxx_xxxxx_xxxx.pdf 5) MI04_xxxxxxx_xxxx.pdf 6)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.