Script to Activate layers labeled "Activate on System Start-up"
Created: 31 May 2011 | 2 comments
I currently have a script that i have on my desktop, once i click the .cmd file it "Deactivates" any and all layers that are currently running... an efficient way to leave SWV open for new layer installations...
I was hoping someone could help me with a script that activates any layers that I have assigned "Activate on System Start-up". Because once I create a new layer, I have to go back and activate, 1-by-1, each layer that I use on a regular basis, labeled "Start on System Start-up"
So was hoping there is someone out there that has created this script of activating these specific layers... or maybe there is a better solution
thanks
Discussion Filed Under:
Comments
Here is what I have done
Here are the scripts I use.. in this order.
1. setup a copy task (just a command task) that copies the .xpf file
copy \\someplace\share\googlechrome.xpf "c:\program files\Virtual Applications\Google Chrome"\googlechrome.xpf
2. Setup a task (another command task) that imports the virtual app
svscmd.exe I -P "c:\program files\Virtual Applications\Google Chrome"\googlechrome.xpf –F
3. Setup a task (a command task) that sets that virtual layer to auto.
svscmd.exe "Google Chrome" AUTO –Y
4. Setup a task (a command task) that activates that virtual layer.
SVSCMD.EXE "Google Chrome" A
You can use SWV's WMI
You can use SWV's WMI provider to write a script that query's all the layers on the system that have that flag set then activate them.
https://www-secure.symantec.com/connect/articles/svs-and-wmi-windows-management-instrumentation
If a forum post solves your problem please flag is as the solution
Would you like to reply?
Login or Register to post your comment.