Get Computer Name From Mapped Drives

I am trying to get the computer/server names from the mapped drives on the Clients PC when they select a file from the upload "browse" button. When the user clicks on the "Browse" button on the "<input type="File"... control and selects a file located in one of many possible mapped drives. I want to save the location of the file as a path as you would see when mapping a drive. For instance, "serverfolders... instead of the
mapped path of "P:foldersubfolder... etc. Therefore, when a user views the document they can click on the link and get access to the file regardless of how their drives are mapped. Oh, I need to be able to do this from classic ASP.

I attempted to use the FileSystemObject object but cannot find the method that gives me this information.

View Replies


ADVERTISEMENT

Mapped Drives And FSO

I keep getting "path not found"..

I'm running two servers, the machine running IIS that is running my ASP
script uses the same IUSR account and password as the folder that I am
trying to access through a mapped drive. Permissions should be good.

here is my code:

Set objFile = Server.CreateObject ("Scripting.FileSystemObject")
objFolder = "M: estfolder"
Set MyFolder = objFile.GetFolder(objFolder)

if I take the same directory path "M: estfolder" and paste it into explore
it finds the path without a problem...

View Replies View Related

Fso Fails When Connecting To Mapped Drives From Asp On IIS 6.0

I have an asp page (see source code below) running on IIS 6.0 on
Win2003 Server that tries to get file and folder information on a
Novell Server. I am able to successfully connect to the share on the
Novell box if I use the UNC path. But, unfortunately, I need to have
the mapped path for my application.

I created a simple vbs script and
saved it to the server desktop and run it to verify connectivity to the
Novell box. I am logged in to the server with the same user as set up
in my website as the anonymous user. The vbs file runs perfectly. But
as soon as I move the code into an asp file, I get the following error
"Microsoft VBScript runtime error '800a004c' Path not found". If I
go into my asp file and change the path to the novell box to a UNC
format, then it works. Below is the asp file: Code:

View Replies View Related

VBscript For Mapped Network Drives

I need to know how and if its possible to have a vbscript run when a user logs onto my pc. I need the script to connect to my mapped network drives on my pc since you have to double click under My Computer in order to connect to the drives. I want this automated as much as possible.

I currently use a batch file under the startup folder but wanted the process to run behind the scenes instead of a dos box popping up.

View Replies View Related

Code To Map Drives

I was not able to map a drive from remote server to my local pc.

View Replies View Related

SRV2003, ASP And Network Drives

I have an ASP app that calls an object on the web server which goes out to a
mapped network drive to retrieve a file from a W2K file server. My current
web server is a W2K. The share on the file server as well as the NTFS
permissions on the server are wide open (Everyone Full Control) but still
require me to run the web server under an account other than the IUSR
account for the object to be able to access the file. None the less, it
works fine.

However, when I run this same app on a W2K3 server, it can not
access the file from the exact same location. Seems to me I need to tell the
web server at a different level what account to run at or something. It
doesn't appear that the W2K3 web server's account has permission to access
the file despite the fact I am using the same account as the W2K. Anyone
have any ideas? The goal is to get the W2K3 web server to successfully
access a remote file on a W2K file server without any permissions problems.
Again, the share and NTFS on the file server are wide open.

View Replies View Related

Mapping Network Drives Through Asp

I was wondering is there a way to map a network drive a on persons machine with a online gui interface?

Is there a way user 1 can map drives on THEIR computer using an online interface?

View Replies View Related

Connect To Mapped Drive

I have mapped a drive in our IIS, but I don't know how to connect to it from
ASP. I would like to place files (like images files) to the mapped drive
T:XXXYYY and display files from there.

I've tried using Server.MapPath, but when I put T:XXXYYY as parameter, it
will say it requires virtual path but not physical path.

Then I tried using:

Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject")
Set MyFolder=MyFileObject.GetFolder("T:XXXYYY")
but it will say Path not found.

View Replies View Related

Get Folders In Mapped Drive

I mapped dirve in a another computer as K: and I need to listout folders in a asp page that mapped drive. So I was checked that drive is in ready state using IsReady property, but it will return false. But when I was tried in VB application using same code it work perfectly. So any one know what can be happned.

<%
set fso = CreateObject("Scripting.FileSystemObject")
set d = fso.GetDrive("K:")

if d.IsReady Then
response.write " Drive " & d.driveletter & " is Ready "
else
response.write " Drive " & d.driveletter & " is not Ready "
end if
%>

View Replies View Related

Cannot Access Remote File From Mapped Drive

I want to access files from a remote server so I mapped it in my
server under z: for myserverwebmysiteimages

I added this UNC path to my IIS virtual directory and name it as
"upload" but I still cannot use any FSO to read it. Here is my code:

View Replies View Related

Copying Files Using Mapped Drive Error

im trying to create an online doc library for our intranet using a MS Access back end

a form allows the users to enter all the details of the doc and then select the file by using a file browser ( input="file" )

the asp script then copies the file from server A to the intranet

the problem is , is that if the user chooses a mapped drive ( e.g. the S drive ) then it fails - if they use the full drive map then it works fine

SO

Fail : s:stu.txt
Works : stuscomputer estdocsstu.txt

is it becuse the intranet server doesnt know what drive S is ?

View Replies View Related

Computer Name

I'm building an Intranet for my company and would like to retrieve the computer name of the users PC which they're using to access the Intranet. Is this possible? If so how?

View Replies View Related

Computer Name In ASP

How can I retrieve the computer name of the browser and output it to the
webpage in ASP/VBScript?

View Replies View Related

Get Computer Name

I need to get the computer name of the computer that is accessing my page.I have a web app on an Intranet (server) that is getting the name "INTRANET" if I use the " Wscript.Network " code. If I access this web app, I need the name of my computer, the one accessing the web app, not the name of the Intranet server.

View Replies View Related

Writing Text File To A Mapped Drive Or Network Drive

how to write a text file to a mapped drive or network drive. In my script, I’m currently writing the text file to a local folder on the server temporarily until I can figure this out.

So far I have tried to use the mapped drive letter, network path, etc. to get this working. I believe all the permissions are in order (I hope) as well. No matter what I have tried, I just get a Path Not Found script error. I know this has to be possible, just I’m missing something … probably something right under my nose but I just can’t figure it out.

View Replies View Related

Computer Can't Count

Essentially all I'm trying to do is add numbers together. If there isn't a record then create one with the number 001.

If there is a record add one to the number (Which in most cases will be 001) so the next number should be 002.

My problem is that it gets to 002 and stops. Any ideas why? Code:

View Replies View Related

Can You Grab The Computer Name?

can you grab the computer name via asp?

View Replies View Related

Database To Another Computer

I use Sql Server.I want to back up a database on server over network to my computer.I do not have Sql server on my computer.It will be kept as a file.
The questions come to my mind:Should I first back up database from Sql server to server which Sql Server resides? or Is there any possibility to back up database from Sql server directly to my computer over network?If it is not, how should I accomplish this? Using Vbscript?First Create "Scheduled tasks" then using ".vbs" file which I will create to automatically send file to my computer over network.

View Replies View Related

Computer Room

we have 7 computers can access our web application.Is there a way I can use their computer names to identify which computer login?I use asp and javascript.

View Replies View Related

Search For A Certain Computer On A LAN

how to search for a certain computer on a LAN? Using its name for example.

View Replies View Related

Install Asp In My Computer

how to install asp into my computer and i know that it needs iis server connection.can u tell me how to do that.

View Replies View Related

Retrieve Computer Name

how to retrieve the computer name using ASP?

View Replies View Related

Request Computer Name

Is there a way to request the computer name (ie. Request.ServerVariables ("REMOTE_ADDR"))? I want to be able to pull the computer name and enter it directly into a form, but I'm not sure how to pull the name.

View Replies View Related

Where Are Exactly Cookies Stored In Computer?

Does anyone know where the cookies are stored in the computer. I guess depending on the brower the client uses, they are stored in diff places.

But when i make a search for cookies, i can find few txt files inside the cookie folder with names userid@websitename[1].txt but i cannot see the any cookies with the domain name iam working ....

View Replies View Related

Open The Asp Page On Another Computer

I have a network. Let's say the ASP pages are on computer 1. I try to open the pages from an other computer, let's say computer 2, in the network. How can I realize this?
I tried to make a drive (M:) on computer 2 which referes to the (shared) map on computer 1 where the ASP pages are. The pages are shown, but the asp-code isn't used in the displayed page. Only all the html-content is shown.
Is there any (other) way to show the ASP pages on computer 2?Computer 2 is not connected to the internet, so over the internet is not an option.

View Replies View Related

About Testing On Local Computer

I have been teaching myself ASP for several months now and seem to have a pretty good handle on it. All along, I have been uploading changed files directly to the website and refreshing to test.

However, today I will be at a location with no internet access and would still like to be able to work and test my programming. How do I go about testing ASP pages on my local computer without an internet connection?

For now I am not worried about testing any databases or anything, just layout and design.

If it is useful, I am running Windows XP Home edition and I use Dreamweaver to write the ASP.

View Replies View Related

Retrieve UserName And Computer Name

I have tried using servervariables("XXX") to request the username and computer name of the individual running code on our internal server, but what I want and can't seem to capture is the user's network logon and computer name. The user's logon anonymously.

View Replies View Related

Acessing A File In Another Computer...

Is there anyway to acess a file in a computer without being prompt with the password and username?

Imagine that i want to access a shared directory in another computer, if i type this in the START-RUN option, OtherComputerc$Temp, i will be prompt with the username and password, what i want to know is:

If i knew the user and the pass could i type a command like this,OtherComputerc$Temp@userpass (just an example), that it wont ask me the password and go directly to the directory? Code:

View Replies View Related

Localhost / Home Computer

I am trying to play with ASP on my home computer. I am placing a "hello.asp" page with simple code in C:Inetpub or C:Inetpubwwwroot and running it and am getting:

The page cannot be displayed. The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. I am running Windows 2000 Server, and I just stripped off Apache/ MySQL. I am not sure what I need to do to allow myself to run ASP pages on my home computer.

View Replies View Related

ASP File Don't Load Properly Off Computer

When I try to open an aspx file located on my computer it doesn't load properly (i.e not all objects are visible like text fields and such) and it gives me a syntax error stating that it expected a semi-colon (;) on one of the lines.

My page language is VB and so no semi-colon is required and when I load the file through my web server by typing
http://myIPaddress/myfile.apsx
the page loads correctly and functions normally.

Several hard drive formats ago I was able to open aspx files with internet explorer without going through my web server. I am pretty sure I have everything installed like IIS 5.1 and the .NET framework.

View Replies View Related

Get Info From File On A Clients Computer

I´ve made a program and now i would like the users of the program to be able to download updates from my website.

I want the user to show where the EXE-file on their computer is, so i can check version number, size and name of the file.

Do i need the user to upload the file to the server first before i can check version number, size and name?

Can i do this without some kind of component? Code:

View Replies View Related

Parse An Xml On The Client Side Computer

I have only been doing ASP for 2 days now so I am learning as I go. I am trying to paser through a xml document that is on the clients computer.

I am using the XMLDOM object. The problem is that the path that I supply using <input type="file" name="mFile"> is always looking to the server's hard drive instead of the clients computer. How do I make the XMLDOm object load the xml file from the clients computer. Code:

View Replies View Related

Setting Up A Sql Database On My Home Computer

I've been meaning to setup a website on my computer again. I have calbe so its a static IP

i remember I downloaded three three programs but i can't remember exactly what they were or where I got them

1.)I think i had a sql database: mysql I think

2.)Then i think i had php but where can i get that for free?

3.) finally i think i had some kinda of board program using the sql database bbforums or something

Finally, I think i found out latter that all three are available in one download that preconfigures everything (configuring the stuff was a real pain in the butt)

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved