Page 1 of 1 1
Topic Options
#38584 - 2003-03-31 04:48 PM execute "net use" silent??
vanloon Offline
Fresh Scripter

Registered: 2002-05-27
Posts: 34
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

Top
#38585 - 2003-03-31 04:50 PM Re: execute "net use" silent??
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
sure ... show us the 'net use' line and we will translate it to use KiX' USE command
_________________________



Top
#38586 - 2003-03-31 04:51 PM Re: execute "net use" silent??
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
oh , and additionaly

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

to silence the shell commands
_________________________



Top
#38587 - 2003-03-31 04:51 PM Re: execute "net use" silent??
vanloon Offline
Fresh Scripter

Registered: 2002-05-27
Posts: 34
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"

Top
#38588 - 2003-03-31 04:55 PM Re: execute "net use" silent??
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany


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
_________________________



Top
#38589 - 2003-03-31 10:11 PM Re: execute "net use" silent??
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
there are a number of map drive UDFs in the UDF library that can handle disconnecting and reconnecting drives for you.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#38590 - 2003-04-01 10:44 AM Re: execute "net use" silent??
vanloon Offline
Fresh Scripter

Registered: 2002-05-27
Posts: 34
Thanks for all responses everything work great!!
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.06 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org