Command line assistance please

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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


:
| 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.
 
Thanks, David, but you see I can only rename where the .rdy file exists. A blanket rename of the .abc might catch one that is still in the process of being written. The .rdy signals that the companion .abc has been completed

----- Dave Patrick wrote: ----

rename *.abc *.de

--
Regards

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


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

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

| Thanks
| Charles
 
Better to ask in;
cmdprompt.admin

--
Regards,

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


:
| Thanks, David, but you see I can only rename where the .rdy file exists.
A blanket rename of the .abc might catch one that is still in the process of
being written. The .rdy signals that the companion .abc has been completed.
 
Back
Top