NetEZ.com NetEZ Community
Enter City & State or US Zip Code:
Change your local weather options
Google
WWW NetEZ.com

NetEZ.com Forum Index  
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Automatically duplicate Filename in the comments column

 
Post new topic   Reply to topic    NetEZ.com Forum Index -> xplorer˛ Professional
View previous topic :: View next topic  
Author Message
Mr.Pleasant
Silver Member
Silver Member


Joined: 29 Dec 2006
Posts: 242
Location: Utrecht, NL

PostPosted: Fri Feb 13, 2009 10:38 am    Post subject: Automatically duplicate Filename in the comments column Reply with quote

Anyone got a brilliant idea for this?
I'm renaming a large amount of files. They need to be renamed according to another file naming system. But I don't want to lose the connection with their old name altogether. So I'm thinking of putting their old file (base) name in the comments column (you know, the comment you can change with the Alt-z shortcut).
Now I'm looking for a way to do this automatically (the renaming itself is tiring enough...). So, if you know any way of clever X2 commands, Dos, or anything else that will achieve this: please help me out!
Thanks!
Back to top
View user's profile Send private message
nikos
Moderator
Moderator


Joined: 07 Feb 2002
Posts: 12346
Location: UK

PostPosted: Fri Feb 13, 2009 1:42 pm    Post subject: Reply with quote

shrug
the only thing i can think of is to write a WSH (script) and add comments programmatically through some shell object
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Cosmo
Gold Member
Gold Member


Joined: 17 Apr 2007
Posts: 408

PostPosted: Fri Feb 13, 2009 2:08 pm    Post subject: Reply with quote

Sounds that there will be a tremendous amount of labor. And what for? It sounds, as if you want get the option to get back to the old names. And then the labor has to be done a second time.

Perhaps this is feasible: Say the files are named oldname.ext
By mass-renaming like $#.$N you give them a temporary new name and override the number with the needed new name. This would preserve oldname in the middle. Perhaps the idea helps.
_________________
Thomas
Back to top
View user's profile Send private message
Mr.Pleasant
Silver Member
Silver Member


Joined: 29 Dec 2006
Posts: 242
Location: Utrecht, NL

PostPosted: Fri Feb 13, 2009 3:09 pm    Post subject: Reply with quote

Thanks, Nikos and Cosmo!
The problem is that I have a lot of image files which are all linked to a big DTP document by means of their file name. Now, these image files have been updated. Actually, the new files contain translations into another language (I'm doing a localisation job). These new set of images, as I wrote, have all new filenames. To link them to the DTP document, I have to rename them according to the names of the old images.
But for the sake of checking, and, who knows, 're-updating' images or going back indeed, I'd like to have some system which could give me an easy clue of the 'naming history'.
Your suggestion, Cosmo, might work, in a copied environment, and could then function as some sort of conversion table. But it is not exactly what I'm after.
Maybe I'll try to work out about Nikos' suggestion, and see if VBscript, or other WSH, could help me there.
Back to top
View user's profile Send private message
nikos
Moderator
Moderator


Joined: 07 Feb 2002
Posts: 12346
Location: UK

PostPosted: Sat Feb 14, 2009 2:30 am    Post subject: Reply with quote

if i manage to figure this out in time i'll devote tomorrow's blog to this topic, as a general introduction to WSH
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Mr.Pleasant
Silver Member
Silver Member


Joined: 29 Dec 2006
Posts: 242
Location: Utrecht, NL

PostPosted: Sat Feb 14, 2009 7:46 am    Post subject: Reply with quote

Quote:
i'll devote tomorrow's blog
Much appreciated! I've been looking into this more and more lately, and hoping to add it to my box of tools.

As for the initial issue, I can't find much in the usual scripting languages that applies to editing ADS streams.
I went back to good old 'Script Wizard'. This code:
Code:
echo $N > "$F":x2_AFScomment
followed by 'Execute (DOS)' would do the trick, except that.... this adds the filename to the Comments column as ANSI text, whereas it is read by X2 as unicode, once it is displayed in the column. Funny, but not useful to see the old filename converted into a set of chinese characters.... Rolling Eyes
Back to top
View user's profile Send private message
nikos
Moderator
Moderator


Joined: 07 Feb 2002
Posts: 12346
Location: UK

PostPosted: Sat Feb 14, 2009 10:01 am    Post subject: Reply with quote

nice one! but the stream "x2_AFScomment" is something that x2 uses only if all else fails so it won't be "portable" to other file managers
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Mr.Pleasant
Silver Member
Silver Member


Joined: 29 Dec 2006
Posts: 242
Location: Utrecht, NL

PostPosted: Sat Feb 14, 2009 10:10 am    Post subject: Reply with quote

Quote:
so it won't be "portable"
Thanks. It would be acceptable nonetheless, but this difference in encoding is the real showstopper... But it is good to know how this stream '"x2_AFScomment" works anyway!
Back to top
View user's profile Send private message
nikos
Moderator
Moderator


Joined: 07 Feb 2002
Posts: 12346
Location: UK

PostPosted: Sun Feb 15, 2009 3:04 am    Post subject: Reply with quote

i found this WSH extension object that should read and write file comments. I won't blog about it since nobody will understand it as an introductory article!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Mr.Pleasant
Silver Member
Silver Member


Joined: 29 Dec 2006
Posts: 242
Location: Utrecht, NL

PostPosted: Sun Feb 15, 2009 9:12 am    Post subject: Reply with quote

Well, I hope it isn't too advanced for me either.... But surely, I will have a look at this and see if I can use it to my benefit. Thanks for pointing me in the direction, Nikos!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetEZ.com Forum Index -> xplorer˛ Professional All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP