A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

HELP: Dir() time-out woes :( .....



 
 
Thread Tools Display Modes
  #1  
Old January 17th, 2006, 09:28 AM posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming
external usenet poster
 
Posts: n/a
Default HELP: Dir() time-out woes :( .....

When I call the function Dir("Q:\") and Q:\ is a network mapped drive does
it fail (return "") if it does not receive a reply within a certain
time-limit? The reason why I ask is because the update response from a
network mapped drive is very slow here. If the slow response causes
Dir("Q:\") function to return "" then how can I make it longer time-out?


  #2  
Old January 17th, 2006, 11:21 AM posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming
external usenet poster
 
Posts: n/a
Default Dir() time-out woes :( .....

What is the best way to test whether a drive exists? Sometimes the Dir("C:")
returns "" even when the drive is completely valid.

Maybe I should do ChDrive then test Err.Number. Then ChDir then test
Err.Number???


"KevinGPO" wrote in message
...
When I call the function Dir("Q:\") and Q:\ is a network mapped drive does
it fail (return "") if it does not receive a reply within a certain
time-limit? The reason why I ask is because the update response from a
network mapped drive is very slow here. If the slow response causes
Dir("Q:\") function to return "" then how can I make it longer time-out?



  #3  
Old January 17th, 2006, 01:38 PM posted to microsoft.public.excel.misc,microsoft.public.excel.newusers,microsoft.public.excel.programming
external usenet poster
 
Posts: n/a
Default Dir() time-out woes :( .....

The first article is for visual basic (the language), but is easily
adaptable to VBA.
http://support.microsoft.com/kb/291573/en-us
How To Use Visual Basic to List Active Logical Drives


This is a general sample file for the Filesystem object found in the
Scripting runtime and available for your use by creating a reference to it
in the VBA in tools=references or by using late binding:
http://support.microsoft.com/kb/190882/en-us
SAMPLE: FSOSAMP.EXE Application Uses the FileSystem Object

--
Regards,
Tom Ogilvy
"KevinGPO" wrote in message
...
What is the best way to test whether a drive exists? Sometimes the

Dir("C:")
returns "" even when the drive is completely valid.

Maybe I should do ChDrive then test Err.Number. Then ChDir then test
Err.Number???


"KevinGPO" wrote in message
...
When I call the function Dir("Q:\") and Q:\ is a network mapped drive

does
it fail (return "") if it does not receive a reply within a certain
time-limit? The reason why I ask is because the update response from a
network mapped drive is very slow here. If the slow response causes
Dir("Q:\") function to return "" then how can I make it longer time-out?





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Specify time zone for appointments Philip Eckles Calendar 0 December 4th, 2005 05:58 AM
Date & Time internationalisation Nick Stansbury General Discussion 0 October 27th, 2005 05:01 PM
Please Help! Ref Article ID 210504 Telobamipada New Users 8 May 9th, 2005 01:09 PM
time zone changes destroy all-day events freelance9 Calendar 1 February 1st, 2005 07:25 PM
Time Zone Scheduling JohnA Calendar 0 September 14th, 2004 08:15 PM


All times are GMT +1. The time now is 08:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.