How to pass session.UserId into a shortcut task?

SOLVED

Using Sage MAS 500 August 2010 Update (Version 7.30.4.0)

Created a shortcut task that calls an .exe. I wish to pass session.UserID as an argument, so that the exe can use it to verify if the user has the authority to use certain features within the exe.

How is this accomplished?

Thanks.

 

Parents Reply
  • 0 in reply to JohnHanrahan

    Hello John,

    This appears to not work.

    Shortcut Properties

    Shortcut Target: C:\Documents and Settings\Administrator.BIOWORLDMERCH\My Documents\Testing Arg within MAS\TestApp.exe

    Name: TestApp

    Start In:

    Arguments: Session.UserId

    I created a simple vb6.exe to verify your solution...

    Private Sub Form_Load()

       MsgBox Command$

       Unload Me

    End Sub

    When I run the exe, the messagebox display Session.UserId instead of the valueOf.

Children