Solved

Read text file from the client terminal

Posted on 2002-03-15
6
631 Views
Last Modified: 2008-02-01
How do i read a text file from client machine
and fill the form which has textboxes and date fields with the contents of the text file. Please advice me with the asp script.

suresh
0
Comment
Question by:sureshrao72
6 Comments
 
LVL 2

Expert Comment

by:kikkertm
ID: 6873794
sureshrao72 ,

This is not easy to do, I would be a security problem if you could read files on the client !

Mike
0
 

Assisted Solution

by:djmcrae
djmcrae earned 20 total points
ID: 6873974
As kikkertm has said - the browser cannot read the clients hard drive to transmit data back to your server. The usual Java applets also operate within this sandbox.

If you must do this, you need to create either an ActiveX object (using C++,VB or my favourite Delphi - clients must be Wintel boxes) or an 'unsafe' Java Applet (I've not tried the Java way).

These are fine if you are developing for an intranet and all clients trust your server. Its really not an option for the internet - most browsers will not by default allow unsigned objects, and prompt the user for a 'signed' object. A 'signed' object requires to to purchase a certification from a certification authoity such as Verisign or Thwate.
0
 
LVL 6

Expert Comment

by:ebosscher
ID: 6880723
just for curiositys sake, wasn't there a bug in the scripting file system object that would allow a dynamically created asp script to see the local client machien as the server, or hosting machine, and so allow access to the local file system?

i'm not posting this as a solution, just ... well, just for fun.. he he he
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:sureshrao72
ID: 6883900
Using filesystemobject we can read any text file i guess,
we can grab the contents in a vbscript variable and then fill the form the the variable, is'nt possible
0
 
LVL 2

Accepted Solution

by:
kikkertm earned 20 total points
ID: 6884012
It all depends if you have control over your clients. On an intranet it would be possible if you set the security settings of all your clients very low.

The filesystemobject is an 'unsafe' object and cannot be just instanciated on the client without all kinds of warning boxes popping up !

What are you actually trying to achieve ?
0
 
LVL 1

Expert Comment

by:madeline448
ID: 9333411
sureshrao72,

No comment has been added lately (more than a year now), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question.

RECOMMENDATION: Split points to djmcrae and kikkertm.

Please leave any comments here within seven days.

-- PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER! --

Thanks,

madeline448
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to hide hide popup page refresh second time? 10 112
Time/Date Query 11 38
Summernote and form validation 10 103
Problems using Provider=OraOLEDB.Oracle via VBScript/Classic ASP 5 47
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now