Solved

Read text file from the client terminal

Posted on 2002-03-15
6
630 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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