MS-DOS Help.I’m trying to Batch proccess some files ?

I found this kind of script on the net.
The issue is that it returns the first part from the filename
In the event the file is named “My song.mp3” i obtain the “My”

intended for %%f in (*.mp3) perform call:proc %%f
exit

:proc
reveal %1
goto:EOF

How does someone get your filename using and devoid of the extension

Observe:I really need to run A COUPLE OF command series programs so i must use the decision command

I’m unclear why you are doing that contact, but if you don’t need it you may evaluate just about every file title with simply the intended for loop:
intended for /f “tokens=1 delims=.” %%f inside (‘dir /b *.mp3’) perform Echo %%f

The preceding won’t work when the song has a couple of period (“.”) from the file label because that is what it can use since the delimiter.To exhibit the files while using extension, change delims=.” to be able to delims=”

If you’d like to still create a savings fund call the proc, blend my instance with the ones you have, but position the token with quotes.
intended for “tokens=1 delims=.” %%f inside (‘dir /b *.mp3) perform call:proc “%%f”

Change:
It is possible to either do the third command MY SPOUSE AND I mentioned and put your own additional instructions under:proc or you can use the earliest command as well as:

Method 1:Open parenthesis to add multiple requires
perform (
command line 1
command line 2
)

Method 2:Increase && right after each get:
perform command1 && command2.

Leave a Reply