BuildModel switches
#1
Posted 12 July 2007 - 11:39 PM
This is mostly a small question for Peter, but I hope this also helps others.
Question:
I've been trying to create a shortcut with buildmodel, and I can set correctly most parameters, allowing to set the target and the parameters, but unfortunatelly I can't seem to use properly the -SW switch to specify the work folder for the app (in this case I wanted to point it to %temp%\ and done this using #$ptemp#$p\ working good.
The problem is that when I add the -SW:#$ptemp#$p\ switch, it will be displayed as a parameter after the -SP: switch. Using it placed before this switch and the #$s trick didn't also worked..
Can anyone provide an example showing how I can sucessfully create a Desktop shortcut defining the parameters and the work folder?
Thanks in advance!!
#2
Posted 12 July 2007 - 11:55 PM
Look in MakeScriptHi everyone!
This is mostly a small question for Peter, but I hope this also helps others.
Question:
I've been trying to create a shortcut with buildmodel, and I can set correctly most parameters, allowing to set the target and the parameters, but unfortunatelly I can't seem to use properly the -SW switch to specify the work folder for the app (in this case I wanted to point it to %temp%\ and done this using #$ptemp#$p\ working good.
The problem is that when I add the -SW:#$ptemp#$p\ switch, it will be displayed as a parameter after the -SP: switch. Using it placed before this switch and the #$s trick didn't also worked..
Can anyone provide an example showing how I can sucessfully create a Desktop shortcut defining the parameters and the work folder?
Thanks in advance!!
I have add some option of BuildModel
#3
Posted 13 July 2007 - 07:06 AM
Here is a snippet from a script of mine where i used buildmodel with parameters successfully
Echo,"Creating shortcuts.." If,%cbShortcutDE%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"DE","#$pSystemDrive#$p\%ProgDir%\Locksmith\ERDLogon.exe","%tbShortCutName%",-SP:#$pSystemDrive#$p\%ProgDir%\Locksmith\Locksmith.exe#$q#$s#$q-SF:#$pSystemDrive#$p\%ProgDir%\Locksmith\Locksmith.exe#$q#$s-SI:0 If,%cbShortcutQL%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"QL","#$pSystemDrive#$p\%ProgDir%\Locksmith\ERDLogon.exe","%tbShortCutName%",-SP:#$pSystemDrive#$p\%ProgDir%\Locksmith\Locksmith.exe#$q#$s#$q-SF:#$pSystemDrive#$p\%ProgDir%\Locksmith\Locksmith.exe#$q#$s-SI:0 If,%cbShortcutSM%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"SM\%tbStartmenuGroup%","#$pSystemDrive#$p\%ProgDir%\Locksmith\ERDLogon.exe","%tbShortCutName%",-SP:#$pSystemDrive#$p\%ProgDir%\Locksmith\Locksmith.exe#$q#$s#$q-SF:#$pSystemDrive#$p\%ProgDir%\Locksmith\Locksmith.exe#$q#$s-SI:0
#4
Posted 13 July 2007 - 08:44 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users