Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closing a Folder or Application???

Status
Not open for further replies.

Oxymoron

Technical User
Dec 17, 2000
168
GB
hi y'all.
I recently discovered that in Win 98, a user can customize a certain Folder (View>Customize Folder).
Choosing this option, you can view and edit the HTML code for the folder, intrigued I starting making a few adjustments.
And I created just a simple button to close the folder. However I do not know the correct VB Script syntax to shut a folder (or any application for that matter)
I have tried Document.Close or .Exit or .Quit
None of these work, please could someone tell me whether there is a syntax that can close the folder or a file etc
If not, is there a sub I could include to do this???
Please Help. any suggestions would be great :p
cheers!
JOE
 
Hi

I'm not sure if this is possible in VBScript, but at least it's quite easy in javascript:
Code:
<INPUT TYPE=&quot;button&quot; VALUE=&quot;Close window&quot; onClick=&quot;window.close()&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top