Hi everyone,
I'm trying to write a batch that will close open sessions on my local machine
which values are '0' under 'Open files' tab.
instead of just going:
My Computer > Manage > Shared Folders > Sessions
and manage them myself..
any ideas? Thanks!!
Mitch
Closing Open network sessions via batch
Moderator: DosItHelp
Re: Closing Open network sessions via batch
try to use command NET FILE
Code: Select all
NET FILE [id [/CLOSE]]
Re: Closing Open network sessions via batch
And how do I specify those sessions whose 'open files'=0 ?
thanks
thanks
Re: Closing Open network sessions via batch
Having Open Files is something else then Open Sessions...
NET FILE does not show connected sessions.
Check out the command below, or read some info on the Microsoft site about session connections.
NET FILE does not show connected sessions.
Check out the command below, or read some info on the Microsoft site about session connections.
Code: Select all
NET SESSTION /?