/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
What do you mean, open and close a folder? Do you want to present a file/folder browse window?
Answered 07/23/2010 by: VBScab
Red Belt

Please log in to comment
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.
Answered 07/23/2010 by: harshakola
Orange Belt

Please log in to comment
0
i got a script to open a folder.I'm strugulling with the script to close folder.
Answered 07/23/2010 by: harshakola
Orange Belt

Please log in to comment
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.
Answered 07/24/2010 by: VBScab
Red Belt

Please log in to comment
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...
Answered 07/24/2010 by: harshakola
Orange Belt

Please log in to comment
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.
Answered 07/25/2010 by: VBScab
Red Belt

Please log in to comment