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)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
harshakola
14 years ago
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.
Thanks in advance
Harsha.
Posted by:
harshakola
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
harshakola
14 years ago
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...
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
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.