Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Available space on NAS
Message
De
21/02/2014 00:10:47
 
 
À
20/02/2014 23:55:34
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01594835
Message ID:
01594863
Vues:
59
>>You'd only be using a mapped drive letter temporarily, to work around a hole in the .Net framework; and cleaning up after yourself. IMO much cleaner than parsing the results of a DIR command, which strikes me as being very fragile. It might be affected by DIRCMD, maybe European users get results in a different language, or they use "." instead of "," as thousands separator etc. etc.
>
>We just cannot map a drive letter, either permanent or temporary.

Well, to me that's a mystery. What I'm suggesting is temporarily mapping a drive, probably for less than one second (depending on how fast the .Net DriveInfo class can retrieve the data).

I've never seen a security policy where mapping drives is disallowed, I'm not sure it exists. If you have read/write privileges to a network share, there are no security or other implications to allowing mapping of drive letter(s) to that share, it's simply an alias on the client. No different from using SUBST to map a drive letter to a local folder.

OTOH spawning a secondary CMD process is something that may be frowned upon from a security POV. It would not surprise me if some locked-down environments disallow that. You can map a drive without access to CMD using the first link I posted earlier.

If on the other hand it's your development policy to never used mapped drive letters, well and good, but it's stopping you from getting the optimum results in this case.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform