Guest brettmanning24@gmail.com Posted October 31, 2007 Posted October 31, 2007 Hello, Is it possible to use the rename command to rename a *.ITF file with the filename of a TXT file in the same directory. For example Directory 1 contains: DEAL1.ITF BRETT.TXT DEAL1.LOG Is it possible to rename DEAL1.LOG to BRETT.LOG (the same name of the TXT file). The TXT file will be a different name each time, therefore it needs to be some kind of variable rename i.e. always rename the .LOG file to that of the .TXT filename. Thanks, Brett
Guest dadiOH Posted October 31, 2007 Posted October 31, 2007 Re: Rename *.ITF with filename of TXT file brettmanning24@gmail.com wrote: > Hello, > > Is it possible to use the rename command to rename a *.ITF file with > the filename of a TXT file in the same directory. For example > Directory 1 contains: > > DEAL1.ITF > BRETT.TXT > DEAL1.LOG > > Is it possible to rename DEAL1.LOG to BRETT.LOG (the same name of > the TXT file). The TXT file will be a different name each time, > therefore it needs to be some kind of variable rename i.e. always > rename > the .LOG file to that of the .TXT filename. Yes. The file extension is part of the file name; therefore the different extensions make the files unique. -- dadiOH ____________________________ dadiOH's dandies v3.06... ....a help file of info about MP3s, recording from LP/cassette and tips & tricks on this and that. Get it at http://mysite.verizon.net/xico
Recommended Posts