Hello All,
I have scripts that get into files in my company shared drives to retrieve some info. But sometimes the network does not work so the scripts just keep waiting. Is there anyway to send a signal or time out to check that I can connect to the shared drive? if not it will perform something else.
Thanks
How to check the shared drives can be connected
Moderators: Dorian (MJT support), JRL
- Dorian (MJT support)
- Automation Wizard
- Posts: 1386
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: How to check the shared drives can be connected
Can you use GetFileList and perform one action if the file count is >0 and another if it isn't? Or is that too simplistic?
Code: Select all
GetFileList>c:\doesnotexist\*.*,files
Separate>files,;,file_names
If>%file_names_count%>0
messagemodal>I found files
Else
messagemodal>Nothing here
Endif
Yes, we have a Custom Scripting Service. Message me or go here
Re: How to check the shared drives can be connected
Thanks Dorian. Just keep thinking about something likes httprequest but your solution is quite simple.
Just add waiting time and a loop to check the connection in 5 seconds then bingo.
Thanks a gain
Just add waiting time and a loop to check the connection in 5 seconds then bingo.
Thanks a gain