> The problem in your case might be that the path of that 
> temporary directory that we create exceeds the max. path 
> length. The ensure uniqueness of that temp directory, we 
> combine the temp path with a Guid :
> 
> Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N",
> CultureInfo.InvariantCulture))

Gert,

The technique that I use to create guaranteed unique temporary folder
names is probably a little unorthodox, but should yield shorter paths
than appending guid strings...

string path = Path.GetTempFileName();
new FileInfo(path).Delete(); // GetTempFileName has a side-effect of
creating a zero-byte file


-T

Disclaimer Message:

This message contains confidential information and is intended only for the 
individual(s) named.  If you are not the named addressee you should not disseminate, 
distribute or copy this e-mail. Please immediately delete it and all copies of it from 
your system, destroy any hard copies of it, and notify the sender. E-mail transmission 
cannot be guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. To the 
maximum extent permitted by law, Immersive Technologies Pty. Ltd. does not accept 
liability for any errors or omissions in the contents of this message which arise as a 
result of e-mail transmission.


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to