WIN directory to DOS directory question
-
Is there a super easy way to convert a string generated from something like Application.StartupPath to dos compatibility (i.e. directories with spaces have quotes around them and Directories that are too long have a ~ inserted? Thanks, Colin
-
yeah, you format the string yourself, how much easier can you get? (without doing any work that is)
Life goes very fast. Tomorrow, today is already yesterday.
-
Is there a super easy way to convert a string generated from something like Application.StartupPath to dos compatibility (i.e. directories with spaces have quotes around them and Directories that are too long have a ~ inserted? Thanks, Colin
Try this:
Path.GetTempFileName();
Path.GetTempPath();I think you'll manage implanting this one :)
Regards, Matjaž
-
Is there a super easy way to convert a string generated from something like Application.StartupPath to dos compatibility (i.e. directories with spaces have quotes around them and Directories that are too long have a ~ inserted? Thanks, Colin