- May
- 3,515
- 5
As I am sure many others do, my CWD is often on a network drive, and my TCC prompt displays CWD. However, the network is subject to failure, and when that happens, I want to:
1/ terminate any command in progress that requires use of the network
2/ if the CWD is no longer accessible change to an accessible default.
I suspect ON ERROR is the primary method for 1/ above, and can deal with 2/ if the network failure occurs while a command is executed. However, how can I handle a network failure which occurs when TCC is waiting for a new command at the command prompt?
1/ terminate any command in progress that requires use of the network
2/ if the CWD is no longer accessible change to an accessible default.
I suspect ON ERROR is the primary method for 1/ above, and can deal with 2/ if the network failure occurs while a command is executed. However, how can I handle a network failure which occurs when TCC is waiting for a new command at the command prompt?