Jump to content

Stupid French Caracters!


Recommended Posts

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 Files

Lowercase

to get à I must write

to get â I must write f

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

Uppercase

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 ×

to get Ô I must write â

Special Caracters

to get ® I must write ©

BUT how do I get © and ™

Also, I am unable to remove this F*&?%$g Adobe Reader 7 shortcut

DEL "%AllUsersProfile%\Menu D,marrer\Programmes\D,marrage\Lancement rapide d'Adobe Reader.lnk"

2) RunOnceEx

Seems 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!

Link to comment
Share on other sites


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.:whistle:

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

@prathapml

Well 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 keyboard

2) Using the method suggested by Aston

just 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 :blink:

Still, I am not able to get the ® and ™

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

::Delete specific file in specified folder
@ECHO OFF
SET 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 registry
call readreg %SECTION% %KEY%
pushd %RegVal%
:: Delete file if it exists
IF EXIST %FILENAME% DEL /F /Q %FILENAME%
popd
exit

get readreg.bat from the excellent Rob van der Woude's Scripting Pages

I am not able to get the ® and ™

Look like you are using LINUX® TRADEMARK :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...