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.
Maybe someone on this site can help me. I need a batch file to rename files. The way it needs to work is: you open the batch file and it asks you to pick the kind of files you want renamed, (lets say ex020604.*) and it will then ask what prefix do you want put on: the user can enter LAS when the user hits enter, all files starting with ex and whatever parts of the dated file they choose, get renamed, so that the ex comes off and the new title comes on it. I am really hoping someone can help me out. Please email me if you can help at all. Thank you in advance.
I sure could use the answer to Brad's question. I need to parse some input, and read the filename, but ignore the extension. If anyone knows how...
Thanks,
Emma
0
Response Number 4
Name: chris Date: June 7, 2002 at 00:27:29 Pacific
Reply:
All these kind of probs can be sorted very easily and quickly using a copy of QuickBasic. I can't beleive some of the batch files I see created to do these small jobs. Some batch files have hundreds of lines of code, whereas the same small jobs (as you've all requested above) can be done, literally, with just 3-4 lines of QBasic code.
Qbasic is downloadable from a number of sites. For those who've never programmed in basic, please don't panic. You only need to know a few of the string commands + the standard file in/out commands. Equivelant to reading just 6-8 pages of a 600 page manual....
However, there is one big limitation when using QBasic and that is it will ONLY handle Dos 8.3 filenames. I think some of the other flavours of Dos Basic (Powerbasic?) can handle long filenames. Or, of course, you can stay in windows and use Visual Basic.
Summary: I am wondering if it is possible to create a batch file that could search a directory for all occurences of some string in file names and then replace that with a new string. example name_1.txt name_...
Summary: I wrote a qbasic ( program to create a .bat file which creates and sets an environment variable. I then use value of the environment variable for the extension or filename. I called the batch file se...
Summary: Hi. You can also use edlin text editor. It's kinda difficult on the begginnig, but since you learn it, it's easy. And it's VERY VERY useful, since you can edit files without having them. IE of edlin a...