/build/static/layout/Breadcrumb_cap_w.png

open and close a foldeder

Can some one help me to write a script to open and close the folder autuomatically??I tried google but i can't find any thing???

0 Comments   [ + ] Show comments

Answers (6)

Posted by: anonymous_9363 11 years ago
Red Belt
0
What do you mean, open and close a folder? Do you want to present a file/folder browse window?
Posted by: harshakola 11 years ago
Orange Belt
0
My Package deletes fonts but this activity takes place when u open and close windows fonts folder.so i need to poen and close fonts folder.so that i can run my script to do that and run my package. I tried reebooting my PC but this doesn't work so the only way is just to open and close fonts folder once.
Thanks in advance
Harsha.
Posted by: harshakola 11 years ago
Orange Belt
0
i got a script to open a folder.I'm strugulling with the script to close folder.
Posted by: anonymous_9363 11 years ago
Red Belt
0
Font deletion involves deleting the font file in %SystemRoot%\fonts and possibly removing a registry entry (see 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts'). There's no need to open and close the Fonts folder.
Posted by: harshakola 11 years ago
Orange Belt
0
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts'"

oReg.DeleteKey HKEY_LOCAL_MACHINE,strKeyPath

I tried using this script it was deleting all the fonts i dont want to delete all the fonts so i tried using data value for those particular fonts...can u help with that where exactly i'm making mistake in my script...
Posted by: anonymous_9363 11 years ago
Red Belt
0
Look up DeleteValue method for the WMI StdReg provider.

And add some error-trapping to your script. As with any programming, you should always assume that NOTHING will work, even object creation.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ