Differences

This shows you the differences between two versions of the page.

Link to this comparison view

userspace:map_q.exe [2015/03/29 00:58] (current)
Robert Tauber created
Line 1: Line 1:
 +====== map_Q.exe / map_Q.au3 ======
 +Liegt unter "​..\opt_pcbin\install\!drivemap"​
 +und verbindet das Netzlaufwerk Q
 +
 +<code autoit>
 +#cs ----------------------------------------------------------------------------
 +
 + ​AutoIt Version: 3.3.8.1
 + ​Author: ​        ​Robert Tauber 2014.10.03
 +
 + ​Script Function:
 + Bindet \\..\Setup-Files als Laufwerk Q: ein
 +
 +#ce ----------------------------------------------------------------------------
 +
 +Local $paht = "<<​Hier Könte ihr Pfad stehen>>"​
 +Local $user = "​domain\username"​
 +Local $pw = "​*******"​
 +
 +map_Q ($paht, $user, $pw)
 +
 +Exit
 +
 +
 +Func map_Q ($paht, $user, $pw)
 +   Local $ping = Ping("​lager",​150)
 +   if $ping Then
 +   if DriveStatus("​Q:​\"​) = "​INVALID"​ Then
 + DriveMapAdd("​Q:",​ $paht, 0, $user, $PW)
 + local $ERROR = @error ​
 + local $result = @extended
 + If $ERROR > 1 Then
 + MsgBox ( 1, "​ERROR",​ '​@error = ' & $ERROR & '​@extended = ' & $result, 2)
 + EndIf  ​
 + if $result = 1219 Then  ​
 + MsgBox ( 1, "​DriveMap",​ '​Verbinden als "'​ & $user & '"​ nicht Möglich da bereits als andereer user Verbunden'​ , 2)
 + DriveMapAdd("​Q:",​ $paht, 0)
 + EndIf
 +   Else
 +  
 +   EndIf
 +   Else
 +   MsgBox ( 1, "​PING",​ 'Lager antwortet nicht' , 2)
 +   EndIf
 +EndFunc
 +</​code>​
  

QR Code
QR Code userspace:map_q.exe (generated for current page)