Jump to content

Recommended Posts

Posted

hi,

my unattended cd works fine, except for one thing.

there are accents in some wallpaper filenames and when trying to delete them in the main_batch i get errors and the files aren't deleted.

this only happens for files or filepaths containing accents like é è ê .... i.e :

DEL "%systemroot%\Web\Wallpaper\Choeur d'étoiles.jpg"

typing the same line works fine in the xp command prompt though. any idea ?

thanks


Posted

try

DEL "%systemroot%\Web\Wallpaper\Choeur~1.jpg"

instead of

DEL "%systemroot%\Web\Wallpaper\Choeur d'étoiles.jpg"

simple method for other files:

-open a command window (cmd.exe)

-go to the directory

-type 'dir /x'

-remember the 8.3 name and use it in you batch

Posted

Salut :)

En fait c'est simple, tu laisses toujours les 6 premiers caractères de ton fichier ensuite tu rajoutes ~1 puis l'extension (.jpg) qui doit être de 3 caractères et non 2.

Ainsi msnforum.bmp devient msnfor~1.bmp

D'ou le terme 8.3 : 8 lettres avant et 3 après.

Posted

thanks Westi, i didnt know about dir /x, it works fine now

squallgreg :

en fait il vaut mieux utiliser la methode dir /x car par exemple Choeur d'étoiles.jpg

n'est pas Choeur~1.jpg mais Churd'~1.jpg sous dos ... :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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