Increment file extension

Dell / OPTIPLEX
April 1, 2009 at 15:26:23
Specs: Windows XP, 1 gig
Hi I am trying to increment a file extenxion, so far I have it copying, but need it to increment if it is already there; my code so far is:
copy send\*.dat sendcopy\DIRECTCFC.001

now I need to icrement it, can you please assist?


See More: Increment file extension

Report •


#1
April 1, 2009 at 21:58:12
:: COUNT.BAT - A routine that counts to a number from 000 to 999
:: Tom Lavedas <lavedas@pressroom.com>
  @echo %dbgc% off
%5 %4 %3 %2 if [%1]==[] for %%v in (echo goto:End) do %%v Syntax: %0 Number
%5 %4 %3 %2 for %%v in (%comspec% goto:End) do %%v /e:2048 /c %0 %1 ::
%5 for %%v in (0 1 2 3 4 5 6 7 8 9) do call %0 %1 %%v %2 %3 %4
%5 goto End
  if %4%3%2 NEQ 000 echo %4%3%2
  for %%v in (%2 %3%2 %4%3%2) do if %1==%%v exit
 :End


Report •

#2
April 13, 2009 at 06:52:29
Thanks for assistance, unfortunately I am having issues calling the routine; any thoughts?

Report •

Related Solutions


Ask Question