Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
TRim file name in DOS
Name: aquiyar Date: February 20, 2009 at 05:39:43 Pacific OS: Windows XP Subcategory: Batch
Comment:
I wanto to rename abc123.txt,abc234.txt,abc345.txt to 123.txt,234.txt,345.txt respectively. please help me out..
Name: IVO Date: February 20, 2009 at 06:12:41 Pacific
Reply:
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
0
Response Number 2
Name: aquiyar Date: February 22, 2009 at 22:50:42 Pacific
Reply:
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
Summary: HI Trying to compare 2 file names and then react depending whether they are the same or not. Code as follows: for /f %%a IN ('dir "c:\test\1\*.ver" /b') do @echo %%a for /f %%b IN ('dir "c:\test\2\*.v...
Summary: How would I go about writing a batch file to copy all the file names in a folder...just the file names not the files and then rename them to something standard like "video1.avi", "video2.avi",etc. THE...
Summary: Hello, I've been trying to write a VB Script that would take in a list of file names in the same directory, parse out the ones with a *.zip extension and then arrange by state with the max version num...