File Properties

  • Thread starter Thread starter Tim Marsden
  • Start date Start date
T

Tim Marsden

Hi,

Is there a way of finding out the original name of a file. If a use creates
a text file name "ABC.txt" the renames it to "DEF.txt" can I find the
orginal name "ABC.txt" using vb.net code.

Tim
 
Tim Marsden said:
Is there a way of finding out the original name of a file. If a use creates
a text file name "ABC.txt" the renames it to "DEF.txt" can I find the
orginal name "ABC.txt" using vb.net code.

Maybe 'FileVersionInfo.InternalName', but I doubt that this will work for
text files.
 
FileVersionInfo .OriginalFilename only gives me "" ??

Any ideas
 
Tim,

Tim Marsden said:
FileVersionInfo .OriginalFilename only gives me "" ??

I think this will only work with some file types that store the original
file name, for example, executables, DLLs etc., but not simple text files.
 
Hi Tim,

I agree with Herfried's suggestion, since text file did not store the
orginal file information in the text file format, because the text file
format is very simple, it did not stored any other information in the file.

If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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

Back
Top