Results 1 to 2 of 2

Thread: including quotes in a retval statement

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    UK
    Posts
    66
    I have this line to run from a VB6 app but I need it to include two sets of quotes so it actually runs:

    su shutdown < shutdown.txt "logout.exe /f /o /s lsc.dat" highside_dom

    How can I stop it getting confused with the quotes in the retval statement? (I hope that makes sense!)

    Simon

    RetVal = Shell("su shutdown < shutdown.txt "logout.exe /f /o /s lsc.dat" highside_dom", vbMaximizedFocus)

  2. #2
    Lively Member
    Join Date
    Dec 1999
    Location
    Karlsruhe, Germany
    Posts
    122
    Hi,

    try

    RetVal = Shell("su shutdown < shutdown.txt ""logout.exe /f /o /s lsc.dat"" highside_dom", vbMaximizedFocus)

    Roger

Posting Permissions

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



Click Here to Expand Forum to Full Width