Discussion Locked

VB Script Possible ???????

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi
i am doing this VB script project ...
in the project i wish to allow the user to delete files of his choice...

i want this as a HTML page...
so as you know when we want to attach a file to the mail , eg: in webbased email .... to attacha a attachment , you click on BROWSE and they allow you to browse the files...and you select it...

i want that my HTML page to allow to delete files... eg: when the user selects the file , it should delete...

or may be a button , which clicked would delete certain files ... this is for my school work ... basically ... we would be doing SQL and all that ...

so please help me ... what i want exactly is , when a HTML page loads some files of the user to get deleted with a box asking for verfication ...

thank you in advance...
bye
chingchang

3 replies

by kevin.riggs

OK. I'm confused as to what you want. Do you want the user to be able to select a file(s) on the user's computer, then delete the file(s) from the user's computer? Or do you want the user to be able to delete files from the server?

You can use server side technologies (ASP, COM components, etc) to delete files from the server but I can't imagine that you'd want to do this except in extreme cases (and I'd suggest you handle file cleanup on the server rather than letting users have any part). Neither VBScript nor Javascript have intrinsic commands for hard drive access specifically for the purpose of keeping malicious websites from doing anything to a user's computer. Even Java applets have inherant security against this. The onlymethod that I can think of to easily accomplish letting the user delete files from his/her computer is to download a .vbs class file or ActiveX component to the user and use that. That is going to require MSIE or a plugin for Navigator.

It just seems like you're trying to do something that IETF and W3C have tried diligently to pass standards against people doing. If this process was easy, imagine what hackers would be doing with malicious websites.

My $0.02.

This discussion is closed to new replies.