Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Cincinnati, Ohio
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Create parameter for shell to command line (Access 2003)

    I have the following command line called to launch Dameware remote control to access a workstation:

    Private Sub Command201_Click()
    Call Shell("C:Program FilesDameWare DevelopmentDameWare NT UtilitiesDWRCC.exe -c -h -m:jgwks097", 1)
    End Sub

    The -m: is for the machine name and jgwks097 represents a static hostname. Is it possible to modify this to use the value from a field on my form [me.hostname]?
    Thank you! -Scott

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Create parameter for shell to command line (Access 2003)

    Yes:

    Call Shell("C:Program FilesDameWare DevelopmentDameWare NT UtilitiesDWRCC.exe -c -h -m:" & Me.HostName, 1)

  3. #3
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Cincinnati, Ohio
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Create parameter for shell to command line (Access 2003)

    Thank you Hans. Frustrating when it's only a & away.
    I appreciate it. -Scott

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •