Forum Moderators: coopster & phranque

Message Too Old, No Replies

Local copy

Copy a file to a local drive to specified location/name

         

minnapple

10:07 pm on Aug 6, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am trying to figure out how I create an interface that allows a user to browse their local drive for a jpg file and then have an button action or the like that copies that file to their desktop using a predetermined name.

Thanks in advance,
minnapple

sugarkane

11:03 pm on Aug 6, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think this could only be done with an ActiveX control - all other technologies eg Java are prevented from writing to your local drive for security reasons.

minnapple

12:02 am on Aug 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep, thats what I keep running into.

2nd best would be the code to open the "file > open window" and they could select the file and save as.

It would take one step out of the process. . . kind of, at least in the mind of the users.

Anyone know the code to mimic the "file > open window" by clicking a button or the likes.

thanks again,
minnapple

Key_Master

1:36 am on Aug 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<html>
<head>
<title>Test</title>
</head>
<body>
<a href="c:\WINDOWS\Start Menu\Programs\WINDOW~1.LNK">Browse Drive C: using Microsoft Windows OS</a>
</body>
</html>

Then choose "Run this program from it's current location". It will open Windows Explorer in a new window.

Key_Master

1:47 am on Aug 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Almost forgot...this will work better in a form.

<input type=file name=file accept="text/html">