|
|
|||||||
Hi, Is it possible to run the command net use silent??I do not want to see the messages "command completed succesfull". I do not want to use the command setconsole ("hide"). Enyone?? Thanks, Michel |
||||||||
|
|
|||||||
sure ... show us the 'net use' line and we will translate it to use KiX' USE command |
||||||||
|
|
|||||||
oh , and additionaly shell '%ComSpec% /c anycommand >nul 2>nul' to silence the shell commands |
||||||||
|
|
|||||||
shell '%COMSPEC% /E:1024 /C net use h: /delete /yes' shell '%COMSPEC% /E:1024 /C net use j: /delete /yes' shell '%COMSPEC% /E:1024 /C net use k: /delete /yes' shell '%COMSPEC% /E:1024 /C net use p: /delete /yes' shell '%COMSPEC% /E:1024 /C net use y: /delete /yes' shell '%COMSPEC% /E:1024 /C net use J: \\ivwdsdc01\org$ /yes' shell '%COMSPEC% /E:1024 /C net use k: \\ivwdsdc01\alg$ /yes' shell '%COMSPEC% /E:1024 /C net use p: \\ivwdsdc01\prj$ /yes' shell '%COMSPEC% /E:1024 /C net use y: \\ivwdsdc01\apl$ /yes' use h: "$usr" |
||||||||
|
|
|||||||
use h: /delete use j: /delete use k: /delete use p: /delete use y: /delete use J: "\\ivwdsdc01\org$$" use k: "\\ivwdsdc01\alg$$" use p: "\\ivwdsdc01\prj$$" use y: "\\ivwdsdc01\apl$$" use h: "$usr" should do |
||||||||
|
|
|||||||
there are a number of map drive UDFs in the UDF library that can handle disconnecting and reconnecting drives for you. |
||||||||
|
|
|||||||
Thanks for all responses everything work great!! |