Incroyable HULK Posted December 30, 2004 Posted December 30, 2004 I must confess, I am pretty annoyed with all those French Accent of my language. Every time I am writing a batch file, RunOnce keys, I got problems.Here is a resume of what I have found so far along with missing pieces:1) Batch FilesLowercaseto get à I must write …to get â I must write fto get ç I must write ‡to get é I must write ,to get è I must write Što get ê I must write ˆto get î I must write Œto get ô I must write “Uppercaseto get À I must write ·to get  I must write ¶to get Ç I must write €to get É I must write ?to get È I must write Ôto get Ê I must write Òto get Î I must write ×to get Ô I must write âSpecial Caractersto get ® I must write ©BUT how do I get © and ™Also, I am unable to remove this F*&?%$g Adobe Reader 7 shortcutDEL "%AllUsersProfile%\Menu D,marrer\Programmes\D,marrage\Lancement rapide d'Adobe Reader.lnk"2) RunOnceExSeems to be the same as a Batch File BUT it doesn't work for the éCome on French Members, let's get over this matter once and for all!
Aston Posted December 30, 2004 Posted December 30, 2004 hi,just open a new document with Wordpad,past your texte and save as:New ms-dos document.That convert the ''strange'' French characters for batch file (I think that work with all characters,but not tested)Hope that help,and Xcuss me for my bad English.
prathapml Posted December 30, 2004 Posted December 30, 2004 First, I've shouted myself hoarse on this matter, saying non-ASCII characters are to be avoided if you want your commands to work properly.Second, del /f /q "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 7.0.lnk"That works perfectly for me. I don't know what modifications are needed for french loca;ized version though.Lastly, why are you still stuck on batch files?I've seen XPlode to be very good - and it can do pretty much all that you'd need to do during a uA setup without needing to run a CMD script. Plus, XPlode is based on an XML file from which it takes its configuration, and this XML file can be unicode (which means your french characters will work perfectly).
Incroyable HULK Posted December 30, 2004 Author Posted December 30, 2004 @prathapmlWell my batch files are converted to .exe later on...Now the case of é in RunOnceEx.It appears there is 2 way to obtain a , 1) by pressing the regular , key on the keyboard2) Using the method suggested by Astonjust open a new document with Wordpad,past your texte and save as:New ms-dos document.the result is always a , but the two are not alike!!! only the second method will work for RunOnceEx Keys. If you just type a , on the keyboard it will only work in a batch file. Now that's something Still, I am not able to get the ® and ™
prathapml Posted December 30, 2004 Posted December 30, 2004 Well my batch files are converted to .exe later on...That makes no difference! Its just command-lines which is being converted.... Believe me, RunOnceEX is not that good to use. So yes, I'll repeat what I said above about plain-ASCII coding in batch-files, and using XPlode if you want to move to something better.
Lucius Snow Posted December 30, 2004 Posted December 30, 2004 I use that :del /f /s /a "%allusersprofile%\Menudm~1\Programmes\dmarra~1\*.lnk"That works fine
Incroyable HULK Posted December 30, 2004 Author Posted December 30, 2004 Thanks!Do you have a trick to obtain this abbreviated syntax?You are using the /A switch without attributes?DEL [/P] [/F] [/S] [/Q] [/A[[:]attributs]] noms /P Demande une confirmation avant de supprimer un fichier. /F Force la suppression de fichiers en lecture seule. /S Supprime les fichiers dans tous les sous-répertoires. /Q Pas de confirmation avant suppression avec car. génériques. /A Suppression en fonction des attributs attributs R Fichiers en lecture seule S Fichiers système H Fichiers cachés A Fichiers prêts pour archive - Préfixe de négation
Lucius Snow Posted December 30, 2004 Posted December 30, 2004 Before, i was just trying different possibilities until i find out ... but somebody on the forum gave me a trick : "dir /x". That switch shows you the names in 8.3 format.About the "/a" switch with "del", i haven't noticed i didn't have the right full syntax, thanks
Bilou_Gateux Posted December 31, 2004 Posted December 31, 2004 ::Delete specific file in specified folder@ECHO OFFSET FILENAME="Lancement rapide d'Adobe Reader.lnk"SET SECTION="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"SET KEY="Common Startup"::Read value in registrycall readreg %SECTION% %KEY%pushd %RegVal%:: Delete file if it existsIF EXIST %FILENAME% DEL /F /Q %FILENAME%popdexitget readreg.bat from the excellent Rob van der Woude's Scripting PagesI am not able to get the ® and ™Look like you are using LINUX® TRADEMARK
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now