Myriad Forum « Changing file extension in Windows 10 for several hundred files »
 Welcome, Guest.
 You can read all messages, but to be able to post,
 please Login or Register.
Mar 8th, 2021, 11:38pm 
   Myriad Forum
   Melody Assistant / Harmony Assistant
(Moderator: Forum Administrator)
   Changing file extension in Windows 10 for several hundred files
« Previous topic | Next topic »
Pages: 1  Reply | Notify of replies | Print
   Author  Topic: Changing file extension in Windows 10 for several hundred files  (Read 241 times)
PaulL
Board Master
*****




Organist and choir director

   


Gender: male
Posts: 902
Changing file extension in Windows 10 for several hundred files  
« on: Jan 9th, 2021, 6:29pm »
Quote | Modify

I have always preferred the .MUS extension for my scores, so now I have several hundred scores that need to be changed to .MYR, or I will end up with multiples as I edit them (that will distress me even more than having to change the extensions).  Back in the DOS days, I knew how to change the extensions on multiple files quite easily, but how to do it in Windows 10?  Advice, anyone?
offline

Le coeur a ses raisons, que la Raison ne connaît point.
Paul Littlefield, Church musician

HA+VS+PdfToMusic Win 10
jihel9
Board Master
*****



baryton

   
Email

Gender: male
Posts: 2223
Re: Changing file extension in Windows 10 for several hundred files  
« Reply #1 on: Jan 9th, 2021, 7:06pm »
Quote | Modify

Tu peux toujours le refaire sous DOS, en lançant "invite de commandes" dans le menu programme.
Il faut juste faire la commande "ren" comme dans le bon vieux DOS.
 
Il y a aussi le programme "Ant Renamer" qui peut le faire facilement aussi. C'est un petit programme gratuit qui circule sut Internet.
 
Bonne soirée.
offline

Jean Louis, à Anthisnes (25 Km au sud de Liège)
Harmony Assistant 64bit, la dernière version
Win 10 Insider, Intel I5, 12gb, Chrome francophone (traduction automatique des autres langues)
Daniel Frouvelle
Board Master
*****






   
WWW | Email

Gender: male
Posts: 1481
Re: Changing file extension in Windows 10 for several hundred files  
« Reply #2 on: Jan 9th, 2021, 10:51pm »
Quote | Modify

Bonsoir Paul, tu peux essayer de faire ceci depuis Harmony Assistant avec le script suivant (fais d'abord une copie de tes fichiers au cas où il y aurait un problème)
Copie le code suivant dans un nouveau script puis tu le démarres.
En principe cela fonctionne (il se peut que cela ne fonctionne pas avec des noms de fichiers contenant des caractères accentués)
 
--- This script renames all .mus to .myr files in a folder and its subfolders
--- Callback function declaration
function MyCallBackFunction(fileName)
 a=strsub(fileName,1,strlen(fileName)-3)
 RenameFile(fileName,a.."myr")
 print(a.."myr")
return true
end
-- User is aked for selecting a folder name
folderName=GetFolderName()
if(folderName~=nil) then
 BrowseFolder(folderName,"*.mus",MyCallBackFunction,true)
end

 
Amitats, Danièl.
offline
Tony Deff
Board Master
*****





   
Email

Gender: male
Posts: 1273
Re: Changing file extension in Windows 10 for several hundred files   Command_prompt_Rename.png
« Reply #3 on: Jan 11th, 2021, 12:45pm »
Quote | Modify

You can still access the procedures that you knew of old:  in the Windows search area, type CMD
 
At the familiar prompt, type HELP for a list of commands, or HELP {command} for the format of a particular command (upper case/lower case insensitive)
or see this link:  https://www.lifewire.com/list-of-command-prompt-commands-4092302
 
In the attached example, I used Harmony Assistant's Help > Open "Myriad Documents" folder to copy the path to the relevant music folder.  
Navigate to the required folder and single-click it.  In the Windows area near the top-left, click Copy path.
(Note: Because of a bug in version 992, you need to go one folder-level deeper than in 993)
 
For some reason I have yet to fathom, I had difficulty using the Change Directory (CD) command, and have used the Push Directory command instead
offline


Anglophone using https://www.collinsdictionary.com/translator
Windows 10
/ H.A. (2009>) / Gold / V.S. / PDF
PaulL
Board Master
*****




Organist and choir director

   


Gender: male
Posts: 902
Re: Changing file extension in Windows 10 for several hundred files  
« Reply #4 on: Jan 13th, 2021, 12:47am »
Quote | Modify

Merci, vous sont tous des gentilhommes et écolaires (comme nous disons en anglais)!  Le "DOS box" existe toujours en Windows 10?  Qui le savait?  Je croyais qu'ils l'avaient supprimé.  Je sais l'utiliser, mais j'aime aussi le script de Daniel.  Cool!
 
Merci beaucoup à tous, et mes meilleurs voeux pour l'année nouvelle.
offline

Le coeur a ses raisons, que la Raison ne connaît point.
Paul Littlefield, Church musician

HA+VS+PdfToMusic Win 10
Pages: 1  Reply | Notify of replies | Print

« Previous topic | Next topic »

« Myriad Forum » Powered by YaBB 1 Gold - SP 1.1!
YaBB © 2000-2002,
Xnull. All Rights Reserved.

Top of page
Legal information Last update:  (c) Myriad