The problem that you describe would require a compiled language such as C++ so you can safely rule out Java or any other languages that are not compiled to native code.
That said though, you have the larger problem of what you are describing not really being very do able in the Microsoft Windows operating environment. While you could create a system service to monitor the files, you cannot also have that be attached to a normal Office file format. The most that you could do it rename the complied service to have a *.doc extension and then override Windows when it tries to open the file using the standard extension handlers.
If you are truly concerned about the security of a file your best bet is actually to just get an encrypted thumb drive and carry it around with you or lock it in a lock box.
2007-10-18 13:42:12
·
answer #1
·
answered by Rob 3
·
0⤊
0⤋
You can use any language with write privileges. I don't know vbscript but I doubt it or javascript will be helpful. A shell script (in *nix) or batch file (in Windoze -- I admit I'm a bigot) might be all you need. Just make sure that it's called every day (or every time the computer is reset in Windoze).
One algorithm would be simple. Check the file creation date. Look for a given time. If current system time minus file creation date is greater than or equal to one week, prompt for password. If it isn't entered, delete the file. If it is delete this program.
Since I haven't been on Windoze writing batch files for a few years, I can't tell you what the batch file would look like, but it does seem to me that you can call dos commands like dir and use piping to do every single one of those things. You can also use any compiled and most interpreted languages. So it is up to you.
If there is prewritten code out there it is probably so simple you might have an easier time writing it than finding it.
2007-10-19 00:40:20
·
answer #2
·
answered by jplatt39 7
·
0⤊
1⤋
No that simple.
The *problem* is this has to be constantly running to monitor the file in question, and if the program's killed, your protection's useless, unless you somehow encrypt the file and only with the program running can you open it... Which means you have to write operating-system level hooks, that works with the specific application (Word, Excel, whatever) or ANY compatible program that opens similar files (Open Office, AbiWord, etc.) And that... ain't so simple.
2007-10-18 13:17:34
·
answer #3
·
answered by Kasey C 7
·
2⤊
0⤋
The languages you will use be counted exceptionally on the variety of content fabric you want to recent on your objective industry. listed ideal listed right here are the different languages you will might desire to income. there is not greater advantageous ideal language to place in writing internet website coding in, even besides the shown fact that there are distinctive languages to recent distinctive content fabric. HTML - The hypertext markup language is the right-huge-unfold way of offering archives in a cyber internet browser. All internet website use HTML CSS - Cascading variety-Sheets, is not any greater advantageous than countless a language, yet greater advantageous as a subset of HTML which may well be utilized to variety your web content. Javascript - worry-loose client-area scripting language. this is used to function leads to your internet website, even besides the shown fact that it has some obstacles own living house website - a server-area programming language, it somewhat is must be utilized to paintings with databases, and paintings with archives on the server (subject concerns Javascript can not do). own living house website is somewhat equivalent to the c application language. want this enables!!
2016-11-08 21:20:36
·
answer #4
·
answered by ? 4
·
0⤊
0⤋
I've never heard of anything like this, but it might be something you could write in C++ or VisualBasic.
2007-10-18 13:14:00
·
answer #5
·
answered by Justin H 7
·
0⤊
0⤋
It sounds like you would make a vb macro in excel.
2007-10-18 13:14:39
·
answer #6
·
answered by Bigfoot 3
·
0⤊
2⤋
it sounds like you would make a vb marco in expel
2007-10-18 13:12:23
·
answer #7
·
answered by Anonymous
·
0⤊
5⤋