Jump to content

"menú Inicio", Problem With "ú".


Sha99y
 Share

Recommended Posts

Hi :hello:

I have a problem with copying a shortcut in a start menu folder, because when i run the .cmd file, it sets a folder called "Men· inicio", i use the md "%userprofile%\Menú inicio\Programas\Accesorios\utilidades\cdimage" command.

I don`t trying to do a windows unattended installation, i only want to do a silent app install.

When i use this command writing it, directly in promp window, it works, but not by .cmd file.

How can i solve it?

Thanks a lot. I hope i have posted it well.Thanks again.

Link to comment
Share on other sites


open wordpad..

write what you want

Then, when you save, choose MS-DOS Document Text for type

It'll automatically convert all special characters to an another format .(for ms dos ) and your problem wille be resolved

Link to comment
Share on other sites

I´m affraid i have another question in relation whit shotcuts, if shortcuts in start menu which are in my user folder has the following path "%userprofile%\menú inicio...", which path has the shortcuts which are in "al users" folder?

Thanks a lot

Link to comment
Share on other sites

del /f /q "%ALLUSERSPROFILE%\Men£ Inicio\Configurar acceso y programas predeterminados.lnk"
del /f /q "%ALLUSERSPROFILE%\Men£ Inicio\Windows Catalog.lnk"

RD /S /Q "%USERPROFILE%\Men£ Inicio\Programas\Accesorios\Accesibilidad"
RD /S /Q "%USERPROFILE%\Men£ Inicio\Programas\Accesorios\Entretenimiento"

:)

Link to comment
Share on other sites

Thank you SiMoNsAyS, i`ll not try it now because i thought it would better to use an app which save changes, so i am trying to use wininstall, but really thank you anyway, who knows, maybe i will have to use it.

See you, bye :D .

Link to comment
Share on other sites

  • 4 years later...

Replace Special Characters by query to readable characters in batch files

I had the same issue recently when trying to retrieve the common programs path from the registry of a german windows.

the retrieved path couldn't be readable.

Here is how I solved it:

@echo off

SET LS=HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
SET CS=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

for /f "tokens=3* delims= " %%i in ('reg query "%LS%" /v "Common Programs"') do CALL :SPCHARS "ComProgs" "%%j"
for /f "tokens=3* delims= " %%i in ('reg query "%LS%" /v "Common Startup"') do CALL :SPCHARS "ComStart" "%%j"
for /f "tokens=3* delims= " %%i in ('reg query "%LS%" /v "Common Desktop"') do CALL :SPCHARS "ComDesk" "%%j"
for /f "tokens=3* delims= " %%i in ('reg query "%LS%" /v "Common AppData"') do CALL :SPCHARS "ComAppD" "%%j"
for /f "tokens=3* delims= " %%i in ('reg query "%CS%" /v "AppData"') do CALL :SPCHARS "AppD" "%%j"
for /f "tokens=3* delims= " %%i in ('reg query "%CS%" /v "Programs"') do CALL :SPCHARS "Progs" "%%j"
for /f "tokens=3* delims= " %%i in ('reg query "%CS%" /v "Startup"') do CALL :SPCHARS "Start" "%%j"
for /f "tokens=3* delims= " %%i in ('reg query "%CS%" /v "Desktop"') do CALL :SPCHARS "Desk" "%%j"


ECHO "%ComProgs%"
PAUSE
EXIT


REM MOVE THIS TO THE END OF YOUR BATCH FILES
:SPCHARS
REM Replaces Special Characters to Readable Characters in Batch File
REM VAR 1=Variable Name to SET, VAR 2=Variable Value
set t=
FOR /F %%i in ("%~2") DO SET t=%~2
SET t=%t:ä=„%
SET t=%t:á= %
SET t=%t:à=…%
SET t=%t:é=‚%
SET t=%t:è=Š%
SET t=%t:í=¡%
SET t=%t:ì=�%
SET t=%t:ö=”%
SET t=%t:ó=¢%
SET t=%t:ò=•%
SET t=%t:ü=�%
SET t=%t:ù=—%
SET t=%t:ú=£%
SET t=%t:ß=á%
SET t=%t:ç=‡%
set %~1=%t%
set t=
GOTO :EOF
EXIT

For delims I used [TAB] followed by [sPACE]

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...