Search found 29 matches

by Kerr Avon
01 Jun 2020 09:28
Forum: DOS Batch Forum
Topic: How to rename filenames so only the first letter of words are capitalized?
Replies: 4
Views: 5531

Re: How to rename filenames so only the first letter of words are capitalized?

That's great! Thanks Dbenham.

I wish all forums were as helpful and friendly as this one :D
by Kerr Avon
23 May 2020 14:26
Forum: DOS Batch Forum
Topic: How to rename filenames so only the first letter of words are capitalized?
Replies: 4
Views: 5531

How to rename filenames so only the first letter of words are capitalized?

Is it possible to have a batch file that can rename filenames so that the first letter of every word is capitalised, and every other character is lower case, please? For example, say you have the following files in a folder: meat loaf_i would do anything for love but i won't do that.Mp3 meat loaf_it...
by Kerr Avon
14 Feb 2018 08:59
Forum: DOS Batch Forum
Topic: Can anyone write a batch file to do this, please?
Replies: 6
Views: 6176

Re: Can anyone write a batch file to do this, please?

Mate, that is brilliant! I've just tried it and it does what I want.

Thanks for that, and also for the earlier unarching one.

People like you and forums like this are what the internet was invented for!

Thanks again, mate.
by Kerr Avon
11 Feb 2018 13:44
Forum: DOS Batch Forum
Topic: Can anyone write a batch file to do this, please?
Replies: 6
Views: 6176

Re: Can anyone write a batch file to do this, please?

That batch file is great, I've just tried it on some .7z files and it unarchives the files and moves them into the correct subfolders that I wanted, thanks! But (sorry about this!) would it be possible to have a batch file that does the same thing on already unarchived folders, please? I mean, folde...
by Kerr Avon
10 Feb 2018 18:00
Forum: DOS Batch Forum
Topic: Can anyone write a batch file to do this, please?
Replies: 6
Views: 6176

Re: Can anyone write a batch file to do this, please?

Could it be that the 7-Zip command line switch "e" is what you need? 7z.exe e *.7z penpen No, because that puts the immediate files (the ones from the archive file that are not in a subdirectory inside the archive file) all in the same folder, whereas I want each one in a folder that's named after ...
by Kerr Avon
09 Feb 2018 17:13
Forum: DOS Batch Forum
Topic: Can anyone write a batch file to do this, please?
Replies: 6
Views: 6176

Can anyone write a batch file to do this, please?

Would it be possible for someone to write a batch file that searches for files in any subfolders of a given folder, and moves any files that are more than one subfolder down, into the first subfolder of it's patch (relative to the batch file)? What I mean is, say you have the following four archived...
by Kerr Avon
01 Feb 2018 09:39
Forum: DOS Batch Forum
Topic: Can anyone write this program for me please?
Replies: 2
Views: 3649

Re: Can anyone write this program for me please?

aGerman wrote:
30 Jan 2018 18:14
Actually only one line of code.

Code: Select all

@echo off &setlocal
set "copyfile=1.eep"
set "searchext=*.z64"

for %%i in ("%copyfile%") do for %%j in (%searchext%) do copy "%%~i" "%%~nj%%~xi"
Steffen
That is brilliant! It does exactly what I want, thanks mate!
by Kerr Avon
30 Jan 2018 15:35
Forum: DOS Batch Forum
Topic: Can anyone write this program for me please?
Replies: 2
Views: 3649

Can anyone write this program for me please?

I'm hoping someone can put together a batch file for me that when ran, will look at every file in that folder that has an .z64 extension, and for each of those files, it will create a file called [the file name].eep, with the file being a copy of 1.eep (which is in the same folder). What I mean is, ...
by Kerr Avon
25 Nov 2016 07:28
Forum: DOS Batch Forum
Topic: Can someone write me a batch file to replace full stops in filenames, please?
Replies: 16
Views: 19325

Re: Can someone write me a batch file to replace full stops in filenames, please?

Pieh-ejdsch, that works great, thanks.

Aacini, that also works great (with and without the '2' parameter), thanks.

Now I'm spoilt for choice as to which I will use :D
by Kerr Avon
22 Nov 2016 11:10
Forum: DOS Batch Forum
Topic: Can someone write me a batch file to replace full stops in filenames, please?
Replies: 16
Views: 19325

Re: Can someone write me a batch file to replace full stops in filenames, please?

For number 2, the results would be: catgen.v1.0.zip becomes catgen v1.0.zip (just one full stop becomes a space) win.dirreplac.v.3.rar becomes win dirreplac v.3.rar (two full stops become spaces) t.c.s.2012.08.05.zip becomes t c s 2012.08.05.zip (three full stops become spaces) win.n64check.version...
by Kerr Avon
21 Nov 2016 15:26
Forum: DOS Batch Forum
Topic: Can someone write me a batch file to replace full stops in filenames, please?
Replies: 16
Views: 19325

Re: Can someone write me a batch file to replace full stops in filenames, please?

Anyway, I've put the two routines (the older one that swaps underscores for spaces, plus Thefeduke's one that swaps full stops for spaces, EXCEPT for the last full stop) into one batch file, and added a third routine to it (a modified version of the first one, that swaps two nonconsecutive spaces fo...
by Kerr Avon
21 Nov 2016 15:06
Forum: DOS Batch Forum
Topic: Can someone write me a batch file to replace full stops in filenames, please?
Replies: 16
Views: 19325

Re: Can someone write me a batch file to replace full stops in filenames, please?

Google is implying that you had a file called change.something.something.bat and going from full stops to spaces somehow tried to treat the file name like a command and run it. I know it doesn't make any sense, but that's the error message you get when you run the change command without following i...
by Kerr Avon
21 Nov 2016 11:06
Forum: DOS Batch Forum
Topic: Can someone write me a batch file to replace full stops in filenames, please?
Replies: 16
Views: 19325

Re: Can someone write me a batch file to replace full stops in filenames, please?

Here is part 1) from the first post. @echo off setlocal enabledelayedexpansion for %%a in (*.*) do ( SET "fileN=%%~na" SET "test=!fileN:.= !" If /I "!test!" Neq "!fileN!" ( SET "fileE=%%~xa" rem Code to further refine fileN goes here Echo.ren "...