Extra info: when creating a link with just the queue in it, it also doesn't start from an Shell '%ComSpec% /c start $queue'.. Better said: it spawn and immidiate closes the window ? Test code:



$URL='\\server\queue'
; $URL='%SystemRoot%\explorer.exe'        ; no params (yet)
; $URL='\\server\share'                ; share may contain $

$=ViewURL($URL)

Exit


Function ViewURL($URL)
  If $URL=''
      $ViewURL='Error: No URL defined !'
      Exit(1)
  EndIf
 
  ; Temporary URL link..
  $URLLnk='%Temp%\'+SubStr($URL,InStrRev($URL,'\')+1)+'.lnk'
 
  ; Create temporary URL link..
  $Shell=CreateObject('WScript.Shell')
  If $Shell
      $Shrtcut=$Shell.CreateShortcut($URLLnk)
      If $Shrtcut
          $Shrtcut.TargetPath=$URL
          $CreateShCut=$Shrtcut.Save
          $Shrtcut = 0
      EndIf
  EndIf
 
  ; Spawn shortcut..
  If Exist($URLLnk)
      Shell '%ComSpec% /c start $URLLnk'
      Del $URLLnk
  EndIf
EndFunction



Only when using a queue it failes, the other two works fine ??

Heh, PostPrep for the first time. Must be one of the last ones using it [Smile] [Smile]

[ 13. February 2003, 13:25: Message edited by: Schuliebug ]
_________________________
Kind regards,