Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-28-2010, 05:56 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
Delete File After Download

Hi guy/gals

My 1st Question..

I have just set up my own very 1st website.
Very simple format for now. I know there is a lot to learn.
Currently I have an .xls file set up for download. The file itself is set up with internal triggers and VBA code that activates the file for use after the initial download and then activates other protections set up to keep the file from being copied or renamed. I just figured out that once the file is downloaded the internal triggers have gone off not only on the file that was downloaded which was the goal but also on the file sitting on the website which was not the goal. The end result is the file on the website is only good for one download and then is corrupted. I can work around the issue if I can delete the file after the download. Then I would just set up multiple files and each would delete after a download. Thus the goal is..

1. Delete File After Download.

2. Allow for the Option to "Save" Only.
I also need to block the "Open" file scenario.

Can I get some help on script for this and how I would go about setting it up?

Old 02-28-2010, 06:06 PM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Why not have the file marked as read-only right before download? So the download triggers a permission change and can then be changed back after download, would that stop the corruption?
Old 02-28-2010, 06:25 PM   #3
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 570

Rep: Reputation: 120Reputation: 120
Are you sure!??! It sames extremely strange that you would allow a file downloaded locally to modify your master version on the server. I would imagine what the problem is, is that you download the file which is then cached on your local machine so when you download it again you are actually opening the cached version.
Old 03-01-2010, 04:42 AM   #4
LQ Newbie
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Xavier,

I'll give that a shot today and let you know what happened..
Old 03-01-2010, 06:46 PM   #5
LQ Newbie
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Delete File After Download


I went through more testing and the issue no longer seems to be relevant thus I now believe Devnull was on the mark..

Thanks for the help guys..

You wouldn't know how I can stop the emailing of an open file in VBA code would you?

I would like to force the closure of the file and the only option to email is to attach it from its folder location.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete YOU download files rduncan10 SUSE / openSUSE 3 08-13-2008 05:02 PM
Can't download any files yet can't delete any either. cory94bailly Linux - Newbie 11 08-04-2008 04:43 AM
Fast Download Site for Linux, enables >4GB Download of single file TigerLinux Linux - Distributions 9 10-29-2005 01:45 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 03:46 AM
VSFTP allowing upload/download but not DELETE joelf Red Hat 2 09-25-2003 01:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration