MasterGoa
New member
Hey guys, been trying for a couple of hour to no avail...
I need to setup this line of code:
for /f "tokens=3 delims=: " %i in ('iscsicli SessionList ^| find "Session Id"') do iscsicli LogoutTarget %i
Do be executable as Administrator with a shortcut.
The context is that with the laptop over Wifi, when I shutdown,
Windows 7 shuts down networking before closing it's drives.
So the disk array I purchased which I use over iSCSI times out because
the connection is attempting to be closed after wifi has been shutdown.
So I would like the above command to be an icon on the desk top to
disconnect the iSCSI drive before I shutdown the laptop.
Any suggestions appreciated.
I need to setup this line of code:
for /f "tokens=3 delims=: " %i in ('iscsicli SessionList ^| find "Session Id"') do iscsicli LogoutTarget %i
Do be executable as Administrator with a shortcut.
The context is that with the laptop over Wifi, when I shutdown,
Windows 7 shuts down networking before closing it's drives.
So the disk array I purchased which I use over iSCSI times out because
the connection is attempting to be closed after wifi has been shutdown.
So I would like the above command to be an icon on the desk top to
disconnect the iSCSI drive before I shutdown the laptop.
Any suggestions appreciated.