TRim file name in DOS

February 20, 2009 at 05:39:43
Specs: Windows XP
I wanto to rename abc123.txt,abc234.txt,abc345.txt to 123.txt,234.txt,345.txt respectively. please help me out..

See More: TRim file name in DOS

Report •


#1
February 20, 2009 at 06:12:41
Stated there is no DOS in Windows XP, the following NT batch script does the job

@echo off & setlocal EnableDelayedExpansion
for %%j in (abc???.txt) do (
  set file=%%~nxj
  ren %%j !file:~3!
)
:: End_Of_Batch


Report •

#2
February 22, 2009 at 22:50:42
Thank you...
Now I want to ftp those files. I cant use copy because U have to move it to other system which is not in share access.
I have to use put command. But I need to do it in a single shot. Please help me

Report •

Related Solutions


Ask Question