Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Script to Activate layers labeled "Activate on System Start-up"

Created: 31 May 2011 | 2 comments
jonrios's picture
0 0 Votes
Login to vote

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

 

 

 

Comments

Patrick Smith 3's picture
08
Jul
2011
0 Votes 0
Login to vote

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

Jordan's picture
08
Jul
2011
0 Votes 0
Login to vote

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