How to create a button to bulk rename all files in a folder and append a fixed sequence to the files

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
Stefan2
Power Member
Power Member
Posts: 4124
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: How to create a button to bulk rename all files in a folder and append a fixed sequence to the files

Post by *Stefan2 »

Stefan2 wrote: 2019-05-17, 18:36 UTC
petermad wrote: 2019-05-17, 16:10 UTC...

2Stefan2
How about this:
---

does that work on your Windows 10 ?

Sorry, I get only access to w10 on Monday....
Sorry, forgotten.


- - -

I have tested now and it doesn't do anything (even no sound) for me on DELL7040 and Win10.0.17763.
Add "_Panasonic" to selected filenames
%COMSPEC% /C
if not exist "%P" (echo • > con)
else if exist %Y%P%S1\ (echo • > con)
else chcp 65001 && %%COMSPEC%% /C for /F "usebackq delims=" %%n in (`type %WL`) do attrib -H -S "%%n"
&& %%COMSPEC%% /C for /F "usebackq delims=" %%n in (`type %WL`) do if not exist "%%n\*" ren "%%n" "%%~nn_Panasonic%%~xn"
The rest of the button cmd works for me, once I have removed that "echo • > con" thingies.

So we can not assume that such tricks works for every user.



This was just a test, I have no need for me that this must work.


 
Post Reply