Tech Support > Operating Systems > Windows 2000 > Command line assistance please
Command line assistance please
Posted by Charles on March 7th, 2004


I have a particular problem to solve and I expect that it would be possible using command line commands. For each occurrence of a particilar file extension (say .abc), I have to separate out the file name and add a different extension (say def), then manipulate the new filename.extension (the xxx.def) with commands such as MOVE, after which I have to DELETE the original name (xxx.abc)

I believe that the 'forfile' utility in the resource kit will enable me to isolate each occurrence of .abc, but how do I separate the filename from the original extension and add the new extension

Thanks
Charles.

Posted by Dave Patrick on March 7th, 2004


rename *.abc *.def

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


"Charles" wrote:
| I have a particular problem to solve and I expect that it would be
possible using command line commands. For each occurrence of a particilar
file extension (say .abc), I have to separate out the file name and add a
different extension (say def), then manipulate the new filename.extension
(the xxx.def) with commands such as MOVE, after which I have to DELETE the
original name (xxx.abc).
|
| I believe that the 'forfile' utility in the resource kit will enable me to
isolate each occurrence of .abc, but how do I separate the filename from the
original extension and add the new extension?
|
| Thanks,
| Charles.