Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delete a folder using VBS

0 views
Skip to first unread message

Tom

unread,
Mar 21, 1999, 3:00:00 AM3/21/99
to
Hi. Maybe some one can look at this. I have a web page with a form on it
that has several check boxes and a submit button. Each check box corresponds
to an empty folder. I would like to be able to check the folders I want then
hit the button and have the folder deleted off my system. How would I go
about doing this using VBS. I just need a push in the right direction.
TIA
tom
tomm...@fsinter.net

<html>

<head>
<title>F:</title>
</head>

<body bgcolor="#000000" text="#0000FF">

<form method="POST">
<p><input type="checkbox" name="C1"><a href="F:\tom">F:\tom</a></p>
<p><input type="checkbox" name="C2"><a href="F:\New folder">F:\New
Folder</a> </p>
</form>

<p><input type="submit" name="B1" value="Submit"></p>
</body>
</html>

Dan Lazarakis

unread,
Mar 22, 1999, 3:00:00 AM3/22/99
to
You may be surprised to learn that if VBScript running on a web page were
allowed to delete files and folders on the users local hard drive the world
would be in a bit of chaos don't you think?

Tom

unread,
Mar 23, 1999, 3:00:00 AM3/23/99
to
I realize the security issues. It is for my own machine. I can do this using
vbs under wsh.
Dan Lazarakis wrote in message <#NYuLIMd#GA.260@cppssbbsa03>...

Tom

unread,
Mar 23, 1999, 3:00:00 AM3/23/99
to
Dan
BTW since that last message I have done it. All I have to do is answer yes
or no to allow ActiveX control on the page. Works fine. There was a little
chaos over here but it's over now. Whew. How are things over there?

Michael Harris

unread,
Mar 23, 1999, 3:00:00 AM3/23/99
to
If you intend to run this page locally from your hard drive, you can tweak the registry to allow creating which aren't marked safe for scripting to avoid the prompt.
 
See: Description of Internet Explorer Security Zones Registry Entries

--
Mike Harris
0 new messages