pin shrtcut to "cscript test1.vbs arg1 arg2 to start menu in Win 7

Author Message
redi7

  • Total Posts : 4
  • Scores: 0
  • Reward points : 0
  • Joined: 11/20/2011
  • Status: offline
pin shrtcut to "cscript test1.vbs arg1 arg2 to start menu in Win 7 Sunday, November 20, 2011 11:04 PM (permalink)
0
Hi, am new to this forum and also beginner to VBscript.
I have a reqmt - Pin to start menu a shortcut to "cscript test.vbs arg1 arg2" in Win 7.
I could write a script using the cmd shell.run "csrcipt test.vbs arg1 arg2", but am unable to figure out how to pin it as a shrtcut to start menu. Can someone hemp/guide me in writing a VBscript for this.
Thanks!!
 
 
#1
    rasimmer

    • Total Posts : 2363
    • Scores: 163
    • Reward points : 0
    • Joined: 3/19/2009
    • Location: Cedar Rapids, IA
    • Status: offline
    Re:pin shrtcut to "cscript test1.vbs arg1 arg2 to start menu in Win 7 Tuesday, November 22, 2011 2:17 AM (permalink)
    0
    You would create a shortcut first and point the .TargetPath to CSCRIPT //nologo C:\Scripts\Test.vbs arg1 arg2
     
     http://www.devguru.com/technologies/wsh/quickref/wshshell_createshortcut.html
     
    then you would pin the created shortcut with code like:
     
    http://blogs.technet.com/b/deploymentguys/archive/2009/04/08/pin-items-to-the-start-menu-or-windows-7-taskbar-via-script.aspx
     
    #2
      redi7

      • Total Posts : 4
      • Scores: 0
      • Reward points : 0
      • Joined: 11/20/2011
      • Status: offline
      Re:pin shrtcut to "cscript test1.vbs arg1 arg2 to start menu in Win 7 Tuesday, November 22, 2011 3:03 AM (permalink)
      0
      hi rasimmer,
      Unfortuantely again the method you suggested wouldn't work. Thats becoz "Pin to Start Menu" verb will not be enabled on the shortcut created.
       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9