Reading File On Network Drive

I am trying to read a file which resides on FILESERVERMYFOLDERmyfile.txt.I can not map this server on the webserver. I need to access it through UNC.I have a domain account which when used with ASP.NET works fine through impersonation. I use it for ASPUpload and it works fine to save files on FILESERVERMYFOLDER

I want to read the file through FILESYSTEMOBJECT. I don't know if I can impersonate using FILE SYSTEM OJBECT.How can I read the file.

View Replies


ADVERTISEMENT

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

Network Drive

<i><b>Originally posted by : Augusto (augustocm2000@yahoo.com)</b></i><br />Hi<br />I've got a problem that I´ve been trying to solve but there is no way I can find the solution.<br /><br />I am mapping a network (intranet) drive in my computer (winNT 4.0), but when I try to "see" this drive (or a directory of this drive) from an asp page, it is impossible! What I mean is that the drive is mapped and accessible in my windows explorer, but my asp code says "Path Not Found". And I have no problem when I "see" a local drive, it locates without no problem.<br />Does anyone know if this is a problem with the server??A configuration problem, for example?!<br />

View Replies View Related

Network Drive

I am trying to write a file of emails to my mail server for a newsletter.The emails come from a form on a website and append the file.However I can not accomplish this.I have tried mapping the a network drive.Then writing to the file with the path

"U://subscrib.txt" using the filesys obj.

This did not work and I am unsure why.I could not add the internet user to the permissions on the mail server because its not the same machine.

View Replies View Related

FSO Network Drive

I have a mapped drive on my intranet web server to my internet web server. When I iterate through the drives collection on my intranet site, my mapped drive does not show up. Is there anyway I can get to this drive to read a small set of known files? I don't really want to have to create a virtual folder on the internet web server and move the files in question to it so that my intranet server can get to them.

View Replies View Related

Map Network Drive

i would map a network drive from a share on another server. it works fine with the net use command under user login but it do not work from an asp script or dll.

is this that i have to add the iuser_<computer_name> profile into network computer that share it resources?

View Replies View Related

Map To Network Drive

i want to map to other drive/folder in other machine is possible to do ? i am just handling some file management through web(intranet). my asp files are on my webserver, i do have an file server as well.

want i want is map to my file server so that user can handle their files (of course they are restricted to some extend). some sample code on this.

View Replies View Related

Map Network Drive

I'm trying to create an admin page that can run miscellaneous scripts for our IT department. Currently, I'm trying to create a script that can map a network drive for a user (e.g. a form where I can input pathfolder, drive letter, and domainuser). Is this possible? If so, can someone point me in the right direction?

View Replies View Related

Check Network Drive Exists

Need to knnow how to check if a given network drive and folder exists.

i understand the File io system and how to check if a folder or a file exists.

PS. This would be a maped network drive.. i.e. 23232.23.4556 ( z: ) or enginering on 'werserverde' ( Y: )

Just some more to maybe help answer my question What I need it to beable to enter this "10.52.1.38~Library" into my serch box and have it check if it is valid or not. Code:

View Replies View Related

Access Database Path To A Network Drive

Database path works on drive c:, but it doesn't work on a mapped network drive while i move the database to the mapped network drive it stops working.

Can anybody help how can I write Access Database Path to a mapped Network drive in my vb script?

View Replies View Related

Write A File To Someone's C Drive

if it's possible to save a file down to someone's C drive from an ASP page. I've left him fiddling around with the FileSystem object and TexStream object, but I don't fancy his chances.

I'm guessing this may not be possible, as people may not be overly happy with the concept of web pages writing files to their machines, but I thought I'd ask. And it's on an intranet if that helps.

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

Download File From Server To Local Hard Drive

my current setting is user will click a link in the web page and choose the place that they want to save the file to.

Now i am trying to auto download the file. that means user click the link, it straight away download to for eg. "D:Test". my problem is the web page is at server. user will access the web page thru http, but how am i going to auto download to the user's local drive?

View Replies View Related

Asp Copy File From Local To Remote Share Drive Disk

I have two machines, one generate files, and copy to the other.
I try wscript.shell in my program, but it dit not work.

The two machines are not in the same domain. I saw some people's
question but not suitable for me,their machine are in the same domain.
They can assign permission to do the job.

View Replies View Related

Network File

We are trying to display pdf files which is mappedre to the IIS server. For ex:
My website is located on server A and the url is http://myfolders
Now there are some pdf files ( ja.pdf,feb.pdf..) located on server B which is mapped on server A on the F drive.
So f: >> Server Bpdf folder

Using ASP we would like to allow the user to search for a pdf say jan and we display the pdf as a downloadable link.

View Replies View Related

Delete File Across Network

I need to delete files across the network using web client (IE 6.x) in Win 2003 - IIS 6.0 environment.suggest an approach I can use to acheive this.Will using FSO do the job or I have to go COM way.

View Replies View Related

Copy Network File

I have write a asp that need to copy network file from file server to web server.I try it in webserver is everything alright. When I try in other machine, error on the filepath is not found. I search for the old thread, and I found it is not the same problem.

My IIS authentication method setting is "Digest authentication for Windows domain servers",and "Integrated Windows authentication",and I access the page using "Domain admin" account.So I sure it can access the file server to copy file to webserver.However, it still shown it "path not found".

View Replies View Related

Read Network File.

I am unable to read a network file using ASP. I am using FileSytemObject to read the file.

View Replies View Related

File Upload Over A Slow Network

I'm facing problem with file upload over a slow network. Whenever I tried uploading a file that exceeds 3Kb, the browser will freeze for a few minutes before I get the "page over found" error.

I've tried different ASP upload solutions, including 1 from ABCupload, Smartupload and ASPupload from Microsoft, and the result is the same. Does anyone have a solution for this?

View Replies View Related

Security Issue On Copy Network File

I have write a asp that need to copy network file from file server to web se
rver.

I try it in webserver is everything alright.
When I try in other machine, error on the filepath is not found.
I search for the old thread, and I found it is not the same problem.
My IIS authentication method setting is "Digest authentication for Windows d
omain servers",

and "Integrated Windows authentication",
and I access the page using "Domain admin" account.
So I sure it can access the file server

View Replies View Related

Network Persmissions Write To Text File

I have an asp page that writes to a text file. Can someone tell me what the
correct permissions should be on the network - so it's safe from various
users coming in to manipulate any files?

View Replies View Related

Reading File

I have a routine I'm writing to read the contents of a file and modify it. However the file will not parse properly into an array, so I strongly suspect I'm using the wrong character to parse the file. The line of code that is supposed to parse the file is:

arrLines = Split(sFileContent, vbCRLF)

When I view the array, it appears as one continuous line, but when I open the file in a file editor it's very clear there are 15 lines.

View Replies View Related

Reading An Xls File

I've got a league standings file that gets uploaded as an xls file. To display the contents, I'm not sure what the most efficient way is:

1.) Import the xls file into a database every time the file is updated

2.) Read the contents of the xls file using OpenDataSource or OpenRow Set

3.) Something I haven't thought of yet!

View Replies View Related

Reading A Sql File

I've to got a login script, but in the middle of the verification script, I'd like once the vify has been ok'd to look for a sql file, that has insertion data in it, once the file has been found the asp code must read and carry out the sql command (insert the data in the access db), once done the sql file gets deleted. Code:

View Replies View Related

Reading From Csv File And ,

Im having a bit of trouble with taking a csv file and sperating each row with a "," because we all know that csv's are serpated by cammas, my problem is the rows are getting messy because say I have for the first Collum "Toy, Really fast", it will seperate the collum name because of the , Is there any way I can remove these or whats the best way.
Heres my code right now: Code:

View Replies View Related

Reading File

I am developing a web page, in that i have to get user's photo from user and insert it in to database. how to upload this photo from local drive to my server

View Replies View Related

Reading XML File

I am trying to read in an XML file I don't know the node/structure,so I basically just want to load in the file and then print out the entire file on the page through Response.Writes. how do I loop over the nodes if I don't know the names?

View Replies View Related

Reading An Xml File

i want to 'grab' an rss news feed from a public site that has the xml file published on an hourly basis. how do i do this in asp?

View Replies View Related

Reading TXT File Into A ASP Variable

What's the code for reading a TXT file and assigning it's contents to an ASP variable?

create variable
open a text file... read it's contents into the variable
.... perform string manip. on the variable... etc etc...

View Replies View Related

Reading Xml File By Node Name

how can i read a xml file using the node item name.

one example:

i could use:

root.childNodes.item(0).childNodes.item(0).text

but instead of that, i want something like this:

root.childNodes.item("item_name").childNodes.item("sub_item_name").text

is it possible ? how can i do that ?

View Replies View Related

Reading File From Server

Consider the following code snippet:

<%
Dim objFSO,objOpenFile,strPath

strPath=Server.MapPath("ADList1.txt")
Set objFSO=Server.CreateObject("SCRIPTING.FILESYSTEMOBJECT")
Set objOpenFile=objFSO.OpenTextFile(strPath,1)
Do While Not objOpenFile.AtEndOfStream
Response.Write(objOpenFile.ReadLine() & "<br>")
Loop
objOpenFile.Close
Set objOpenFile=Nothing
Set objFSO=Nothing
%>

When I try to execute the above code, the code never gets executed. Neither
am I shown a script timeout error. After a lot of investigations, I
concluded that the code is not getting executed due to the presence of

Set objOpenFile=objFSO.OpenTextFile(strPath,1)

If I comment line nos. 3 to 8, then the code gets executed but as expected
without any output. Is this happening because of some permission which has
not been given to IIS 5.0? If so, what is it? I am working on Windows 2000
Professional.

View Replies View Related

Reading A TEXT File Without DB

I would like to know how I could accomplish this without using DB. There's a long text file named "TEST.TXT" The TEST file contains special character 'º' which will be used as pagebreak. I want an ASP page that will read the TEST.TXT file and split it into multiple web pages with navigation control. (eg. <FIRST<PREVIOUS>
<NEXT<LAST)

If it is possible

View Replies View Related

Reading File From A Server

I understand i can not use Scripting.FileSystemObject to read a file that resident on another server and i need to use something else.

View Replies View Related







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