Windows long path converts to "******~*" format, WHY??

M

mike-yue

Hi Fellows,
I have a program which does checking audio files in folders
recursively. An interesting thing about this program is that it
printed out the full path of files not in FULL format.

e.g.
A file's location is here:
R:\AAP_1_3\main\cycle4_M3_12JAN2009\data\targets\Regression
\TI_10file_test\rec_aec\stereo\XDAIS_RELEASE\16KHF_16KREF
\fs256\CONFIG607\small_dropouts_in_ref.wav

But the program printed it out this way:
R:\AAP_1_3\main\cycle4_M3_12JAN2009\data\targets\Regression
\TI_10file_test\rec_aec\stereo
\XDAIS_~1\16KHF_~2\fs256\CONFIG~1\small_dropouts_in_ref.wav

The source code I have in hand now could not reproduce the issue
happened before, but I don't know how the issue gone.If I don't know
why it may occurs sometime again.

Thanks

Mike
 
M

mike-yue

Hi Fellows,
I have a program which does checking audio files in folders
recursively. An interesting thing about this program is that it
printed out the full path of files not in FULL format.

e.g.
A file's location is here:
R:\AAP_1_3\main\cycle4_M3_12JAN2009\data\targets\Regression
\TI_10file_test\rec_aec\stereo\XDAIS_RELEASE\16KHF_16KREF
\fs256\CONFIG607\small_dropouts_in_ref.wav

But the program printed it out this way:
R:\AAP_1_3\main\cycle4_M3_12JAN2009\data\targets\Regression
\TI_10file_test\rec_aec\stereo
\XDAIS_~1\16KHF_~2\fs256\CONFIG~1\small_dropouts_in_ref.wav

The source code I have in hand now could not reproduce the issue
happened before, but I don't know how the issue gone.If I don't know
why it may occurs sometime again.

Thanks

Mike

Just checked out an old tagged code and built the executable.
It DOES print out path with "~". But, when I was trying to debug the
program, everything is fine - the path variable and printout are all
full-path.
I know windows have a path length and limit thing, and windows do
convert path into that format "******~*" sometime, but it should not
happen in the program.

Any thoughts?

Thanks
 
T

Thomas J. Gritzan

mike-yue said:
Hi Fellows,
I have a program which does checking audio files in folders
recursively. An interesting thing about this program is that it
printed out the full path of files not in FULL format.
[...]
I know windows have a path length and limit thing, and windows do
convert path into that format "******~*" sometime, but it should not
happen in the program.

Any thoughts?

The answer is here:
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top