?
Solved

Read text file from the client terminal

Posted on 2002-03-15
6
Medium Priority
?
640 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 80 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 80 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

801 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