vanloon
(Fresh Scripter)
2003-03-31 04:48 PM
execute "net use" silent??

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


JochenAdministrator
(KiX Supporter)
2003-03-31 04:50 PM
Re: execute "net use" silent??

sure ... show us the 'net use' line and we will translate it to use KiX' USE command

JochenAdministrator
(KiX Supporter)
2003-03-31 04:51 PM
Re: execute "net use" silent??

oh , and additionaly

shell '%ComSpec% /c anycommand >nul 2>nul'

to silence the shell commands


vanloon
(Fresh Scripter)
2003-03-31 04:51 PM
Re: execute "net use" silent??

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"


JochenAdministrator
(KiX Supporter)
2003-03-31 04:55 PM
Re: execute "net use" silent??



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


Radimus
(KiX Supporter)
2003-03-31 10:11 PM
Re: execute "net use" silent??

there are a number of map drive UDFs in the UDF library that can handle disconnecting and reconnecting drives for you.

vanloon
(Fresh Scripter)
2003-04-01 10:44 AM
Re: execute "net use" silent??

Thanks for all responses everything work great!!