home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 41,469 of 42,547   
   sean to All   
   mapping drives over 26   
   09 Oct 16 05:29:27   
   
   From: sean@sean.eternal-september.org   
      
   Hi All,   
      
   I have a script to mount drives of clients to fetch some data and save   
   the results to a file and an sqlite3 database. I'm using net use to map   
   the drives and once the script is completed, the I unmount all mounted   
   drives on the server. The script reads the IPs of the clients in a   
   separate text file and mounts the drives.   
      
   The (untested) problem is that windows maps drives by letters. If I have   
   a need to mount more than 26 drives, I don't know what would happen. I'm   
   assuming, errors would be generated (but unseen) indicating there's no   
   more drive letters left.   
      
   Right now the workaround is fairly easy: make sure you don't try to get   
   data from more than 26 clients at once. Is there a more elegant solution?   
   Can my IP list have more than 26, but once it reaches that limit, I can   
   set a timeout, unmap and move down the list?   
      
   Alternatively, maybe I can have a few text files and it reads one at a   
   time.   
      
   Thanks for any input.   
      
   -sean   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca