View Single Post
  #12  
Old October 6th 12, 06:49 PM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default Word 2010--Finding Picture Names

"sticks" wrote:

On 10/6/2012 4:58 AM, Paul wrote:
W. eWatson wrote:
Suppose I have a file named anyfile.jpg, and I insert it into a Word
doc. How do I find the name of the file if I need it somewhere else?
Right now I'm in that situation. I cannot find the file in Word, so
that I can find what folder it's in outside of Word.


Either there's a reference to it inside the file, or there isn't.
A search with a hex editor (or any other forensic tool you happen
to have), should tell you whether the filename is there or not.


Open the MS script editor (Alt+Shift+F11) within Word

Images can either be "copied into" a file, or the file can contain
a "link" to the image stored elsewhere on the computer. If an image
is copied into a document, there is no longer a need to keep filename
information about it. Doing so would be purely optional. And that
could be why there is no filename present inside your document right
now - the image is already a copy.


If inserted, the image will be renamed to something like image001.jpg.
Right after the reference to the new number and name, the original will
be listed with something like o:title="anything"/
This will be the original file without the extension.


What I saw (in Word 2003) in a "Testing image.doc" file when opening the
script editor was:

v:imagedata src="Testing%20image_files/image001.jpg" o:title="Iceberg"/

The original filename that got inserted into the .doc file was called
Iceberg.jpg. Of course, with the extension stripped off, you won't know
later if it was a .jpg, .bmp, .png, or other image filetype. Obviously
if you rename, delete, or move the external file it will have no effect
on the content of the .doc file. There's no physical linkage between
the image that is encoded within the .doc file and the source file for
the image.
Ads