Jump to content











Photo
- - - - -

BuildModel switches


  • Please log in to reply
3 replies to this topic

#1 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 12 July 2007 - 11:39 PM

Hi 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.. :yahoo:


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 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 12 July 2007 - 11:55 PM

Hi 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.. :yahoo:
Can anyone provide an example showing how I can sucessfully create a Desktop shortcut defining the parameters and the work folder?
Thanks in advance!! :)

Look in MakeScript
I have add some option of BuildModel

#3 Garfield

Garfield

    Member

  • .script developer
  • 96 posts
  • Interests:pretty much everything
  •  
    South Africa

Posted 13 July 2007 - 07:06 AM

Hi Nuno

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 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 13 July 2007 - 08:44 AM

Thank you for both answers - will look into them to learn more! :yahoo:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users