/    Sign up×
Community /Pin to ProfileBookmark

Openpage action copy file to temp

Is there somebody who can help me out with a tiny simple script.
All it has to do is actually copy a file from a cd to a temp folder on a users local temp.

The idea is the following: I have a CD that contains a database. It is accessed through a html.
Whenever that html is opened, i would like it to copy the database from cd to the local temp, so it can be accessed from there, instead of from the cd.

Maybe i should ask this in the html-forum, i’m not sure.

Also related to this i was wondering:

Supose there would be a script doing just that; If the html page is opened two times in a row without the temp being emptied, wouldn’t there be a question to overwrite the previous database-file in the temp.? Or maybe the script should also remove the file whenever the html is closed…?

And also; is there a temp folder that is the same on all windows platforms? Like c:/windows/Temp for example?

I know, alot of questions, but maybe for wizards like you fairly easy to handle heh. Any help is really appriciated.

Thanks in advance

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@felgallSep 16.2005 — Put the copy command into the autorun file before the command that opens the HTML.
Copy linkTweet thisAlerts:
@nogisauthorSep 19.2005 — Mm..that's another approach that might do the trick.

It does leave me with a few questions though;

  • 1. If the autorun isn't enabled on the users comp, the file will never be copied.

  • 2. The file will not be removed out of the temp folder when the program is closed down

  • 3. How do i put it in the autorun.ini?


  • Any idea's on this?
    ×

    Success!

    Help @nogis spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.28,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...