Loadstring failed error 15105 0x00003b01

Обращение к Program Files в For CMD/BAT Решение и ответ на вопрос 2402311

kbv025

1 / 1 / 2

Регистрация: 03.04.2013

Сообщений: 48

1

11.02.2019, 15:31. Показов 9455. Ответов 11

Метки нет (Все метки)


Всем привет
Есть рабочий скрипт

Windows Batch file
1
2
3
@echo off
setlocal
for /f "tokens=2 delims= " %%i in ('%windir%System32quser.exe /server:127.0.0.1 ^| find /n /v "" ^| find "[2]"') do echo %%i

Кидаю файл в Program Files по новому пути, меняю на %programfiles%1

Windows Batch file
1
for /f "tokens=2 delims= " %%i in ('%programfiles%1quser.exe /server:127.0.0.1 ^| find /n /v "" ^| find "[2]"') do echo %%i

идет ругань
«C:Program» не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

экранирую с двух сторон » «,
«%programfiles%1quser.exe»
«%programfiles%»1quser.exe
таже ошибка

Как заэкранировать это можно в данной команде?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



2 / 2 / 0

Регистрация: 10.11.2015

Сообщений: 179

11.02.2019, 16:07

2

Цитата
Сообщение от kbv025
Посмотреть сообщение

«C:Program»

может надо использовать ‘%Progra~1%’



0



1 / 1 / 2

Регистрация: 03.04.2013

Сообщений: 48

11.02.2019, 16:49

 [ТС]

3

Нет такое не пошло тоже.



0



2 / 2 / 0

Регистрация: 10.11.2015

Сообщений: 179

11.02.2019, 17:10

4

Цитата
Сообщение от kbv025
Посмотреть сообщение

Нет такое не пошло тоже.

так а это , поправьте меня . разве она не должна обворачиваться двойным процентом %%ProgramFiles%%, я забыл уже((

либо %ProgramFiles(x86)% ,
%ProgramFilesW6432%



0



1 / 1 / 2

Регистрация: 03.04.2013

Сообщений: 48

11.02.2019, 17:40

 [ТС]

5

%%ProgramFiles%% это тоже уже пробовал, глухо



0



717 / 318 / 131

Регистрация: 17.03.2014

Сообщений: 798

11.02.2019, 22:43

6

Цитата
Сообщение от kbv025
Посмотреть сообщение

такое не пошло тоже.

неужели на %Progra~1% также жалуется:

Цитата
Сообщение от kbv025
Посмотреть сообщение

«C:Program» не является внутренней или внешней командой, исполняемой программой или пакетным файлом.

?



0



1 / 1 / 2

Регистрация: 03.04.2013

Сообщений: 48

11.02.2019, 23:01

 [ТС]

7

Ругается так
C:UsersАдминистратор>c:2test.bat
Системе не удается найти указанный путь.

В принципе логично в системе же нет такой переменной.
C:UsersАдминистратор>%Progra~1%
«%Progra~1%» не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

Добавлено через 8 минут
Пока только прокатывает вариант с переходом в папку
cd %programfiles%
и вызов уже из нее остального пути с файлом



0



eva2326

1097 / 371 / 82

Регистрация: 17.05.2015

Сообщений: 1,210

12.02.2019, 00:34

8

Цитата
Сообщение от kbv025
Посмотреть сообщение

Как заэкранировать это можно в данной команде?

Windows Batch file
1
2
3
for /f "tokens=2 delims= " %%i in ('""%programfiles%quser.exe" /server:127.0.0.1" ^| find /n /v "" ^| find "[2]"') do (
    echo %%i
)

Добавлено через 2 минуты
Вообще, интернеты пишут:

— surrounding with additional quotes

Windows Batch file
1
""C:Realtime Data Export ToolExportToolBatchFilesExportData.bat" "DNCORR" "SYSTEM" "SYSTEM123" "SYNC" "TEST""

— alternative quoting

Windows Batch file
1
C:"Realtime Data Export ToolExportToolBatchFilesExportData.bat" "DNCORR" "SYSTEM" "SYSTEM123" "SYNC" "TEST"

— call command (preferred)

Windows Batch file
1
call "C:Realtime Data Export ToolExportToolBatchFilesExportData.bat" "DNCORR" "SYSTEM" "SYSTEM123" "SYNC" "TEST"

— @ symbol

Windows Batch file
1
@"C:Realtime Data Export ToolExportToolBatchFilesExportData.bat" "DNCORR" "SYSTEM" "SYSTEM123" "SYNC" "TEST"



1



4330 / 2120 / 661

Регистрация: 26.04.2015

Сообщений: 6,823

12.02.2019, 01:58

9

kbv025,
или же использовать два for, но как минимум по этой причине …»tokens=2 delims=ПРОБЕЛ» у вас %ProgramFiles% и делится на (как тому и положено, согласно написанному) токен %%i — «C:Program» и токен %%j — «Files …».

Добавлено через 3 минуты
а лучше положите «quser.exe» или в беспробельный путь или меняйте всю конструкцию по добыче того что ищите, вариантов хватает.



0



1 / 1 / 2

Регистрация: 03.04.2013

Сообщений: 48

13.02.2019, 00:32

 [ТС]

10

Спасибо да теперь путь отрабатывает нормально, но уже с дальнейшей обработкой проблемы начинаются.

Ладно всем спасибо, действительно с такими траблами лучше вариант без пробелов в пути.



0



Garry Galler

Эксперт Python

5403 / 3827 / 1214

Регистрация: 28.10.2013

Сообщений: 9,554

Записей в блоге: 1

13.02.2019, 01:22

11

Цитата
Сообщение от kbv025
Посмотреть сообщение

с такими траблами лучше вариант без пробелов в пути.

Чем не устраивает

Windows Batch file
1
cd каталог с любым количеством пробелов

? cd, кстати, можно заменить на pushd и popd.

Windows Batch file
1
2
3
4
5
C:UsersGarry>pushd c:program files
 
c:Program Files>popd
 
C:UsersGarry>



0



FlasherX

5296 / 2485 / 988

Регистрация: 06.06.2017

Сообщений: 8,523

13.02.2019, 12:51

12

kbv025, честро говоря, /server:127.0.0.1 ^| find /n /v «» ^| find «[2]» — бессмыслица. Куда быстрее:

Windows Batch file
1
2
@for /f "skip=1 tokens=1 delims=> " %%i in ('quser.exe') do @echo %%i
@pause>nul

Цитата
Сообщение от kbv025
Посмотреть сообщение

Кидаю файл в Program Files по новому пути

А какой в этом смысл? Тем более что при попытке вызвать quser с иным расположением консоль первой строкой выдаст нескрываемую системную ошибку:

{Message(): LoadString failed, Error 15105, (0x00003B01)}

skip в такой ситуации становится бесполезным, да и ненужным:

Windows Batch file
1
2
@for /f "tokens=1 delims=> " %%i in ('"%PROGRAMFILES%1quser.exe"') do @echo %%i
@pause>nul



0



According to a couple of articles that i have found, the quser command should exist on Windows 7, however I have a system running Windows 7 Home Premium and the QUser command does not exist in C:windowssystem32. Is there any way I can get this executable added?

Andrea's user avatar

Andrea

1,5064 gold badges17 silver badges19 bronze badges

asked Nov 21, 2012 at 13:53

Kyle's user avatar

Quser command is only available in W7 Pro or higher, not available in W7 Home.

Currently testing if you can copy «quser.exe» from pro to home and if it works. (copy to system32 folder)

Copied quser.exe from another Pro system but it errors out:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:Windowssystem32>quser /?

{Message(): LoadString failed, Error 15105, (0x00003B01)}

C:Windowssystem32>

quser.exe DLL dependencies are:

WINSTA.DLL

UTILDLL.DLL

USER32.DLL

KERNEL32.DLL

NTDLL.DLL

MSVCRT.DLL

which are present in the system32 folder.

Maybe someone else can tell us if this can be done in W7 Home.

answered Nov 22, 2012 at 1:53

Moab's user avatar

MoabMoab

57.7k21 gold badges111 silver badges173 bronze badges

You will also need to copy the quser.exe.mui file from the C:WindowsSystem32en-US folder to the same location. If you aren’t using en-US as your primary locale, you will need to copy if from your current one.

answered Mar 4, 2014 at 7:33

user2951858's user avatar

I’m not an expert on software licensing but I’m guessing that any solution involving copying system files from a more expensive version of Windows lies somewhere between a violation of license terms and unsupported behavior that might break on any Windows update.


Instead, the Cassia project will likely solve your problem. It comes with a SessionInfo.exe application that has similar functionality to quser.exe, or you can use the library.

answered Jul 10, 2019 at 16:05

Carl Walsh's user avatar

Carl WalshCarl Walsh

3432 silver badges16 bronze badges

Before I get to your primary issue I’d like to point out that the fact that you are getting the message

{ErrorPrintf(): LoadString failed, Error 15105, (0x00003B01)}
Error [15105]:The resource loader cache doesn't have loaded MUI entry.

is an indication that something has become corrupted on your system. MUI is the multilingual user interface. Is the Windows 7 computer in question set to use a language other than «English (United States)»? It looks like tscon is trying to find and display an error message in your configured language, but it can’t find the language file that it should use. This may be a symptom of a larger problem. You’re using tscon.exe that was installed on that computer and not one you copied from another computer, right?

You might be able to correct this problem by running sfc /scannow after taking a snapshot and seeing if tscon gives the same error.

As for your primary issue, the number you are supplying to tscon indicates which session ID to act on. Have you checked if you are using session 0 or 1? Run query user to see what your session ID is and then use that number.

For example, I get this output from query user on one of my servers:

 USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME
>starfish              rdp-tcp#4           2  Active          .  9/20/2012 10:12 PM

Since my session ID is 2, I run tscon 2 /dest:console to send that session to the console. When I go to the console and run query user I see the following:

 USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME
>starfish              console             2  Active          .  9/20/2012 10:12 PM

I also tested this on a Windows 7 Pro desktop with the same results.

If you have success with the commands above, you can put the following into a batch file and run it to send your current session to the console.

for /f "skip=1 tokens=3 usebackq" %%s in (
  `query user %username%`
) do (
  %windir%System32tscon.exe %%s /dest:console
)

It should also eliminate the need to restart the computer, which I suspect was to make sure you always got session ID 0.

Windows 10: Can I run msg.exe on Windows 10 Home?

Discus and support Can I run msg.exe on Windows 10 Home? in Windows 10 Software and Apps to solve the problem; I copied msg.exe from Windows 7 machine to Windows 10 Home machine but it doesn’t work. Gives me error «LoadString failed, Error 15105, …» Can I run…
Discussion in ‘Windows 10 Software and Apps’ started by Eddo51, Mar 8, 2018.

  1. Can I run msg.exe on Windows 10 Home?

    I copied msg.exe from Windows 7 machine to Windows 10 Home machine but it doesn’t work. Gives me error «LoadString failed, Error 15105, …» Can I run msg on Windows 10 Home? How?

    :)

  2. msg.exe file isn’t in System32

    I downloaded a copy of MSG.EXE found in a backup (AMD) directory on a Windows 10 system. This OS says MSG.EXE is a 16 bit program. That means it can only run on 32 bit hardware — not on 64 bit OSes.

    MSG.EXE is not found in Windowssystem32 on Windows 7 64 bit and Windows 10 64 bit Operating Systems. From my search, nobody is addressing this problem. Many who have seen the problem do not realize that MSG is not on their system or are not discussing
    differences between 32 bit and 64 bit Operating Systems.

    In short, I need the MSG.EXE function I have the same question that others have — and is never answered. How do I restore MSG.EXE (for 64 bit OSes) or what other program does the MSG.EXE function?

  3. msg.exe file isn’t in System32

    I am trying to run the command «msg» on cmd. More specifically «msg * MESSAGE». I got an error stating: «‘msg’ is not recognized as an internal or external command, operable program or batch file.» I did some searching, and figured out it was because msg.exe
    was not in my System32 Folder. I am running Windows 10 64-bit, by the way. I searched the whole windows folder for msg.exe, and found the file under the directory of: C:WindowsWinSxSamd64_microsoft-windows-t..commandlinetoolsmqq_31bf3856ad364e35_10.0.14393.0_none_569ddcdcc2b7c2e9

    so i ran cmd again and I changed the directory to the one above, and ran the msg command again. I got a pop-up error saying that the msg file only works for 32-bit systems, and to contact my OS publisher to get the 64-bit version. Is there any way I can
    be able to run the msg command? Is there a 64-bit msg.exe file I can download and put in System32?

  4. Can I run msg.exe on Windows 10 Home?

    msg.exe is not installed in Home, but it is in Pro (and above). Having both, I’ve copied Win10 Pro’s msg.exe to a usb and tried to run from the usb in Win10 Home. Just typing msg with no parameters should have given the ‘help’ text, but instead I got….

    On the Pro machine there was also a msg.exe.mui in C:WindowsSystem32en-US. Copying that to an en-US folder on the usb let me at least run msg.exe to get the help text. I haven’t tested beyond the (not very useful) function of sending a message to myself, but you won’t get any further without a .mui file, it appears.

    An MUI file is an integral part of any app and it won’t run without its associated .mui.

    https://msdn.microsoft.com/en-us/lib…(v=vs.85).aspx

  5. Thanks for your help. I copied msg.exe.mui from a Windows 7 computer to C:WindowsSystem32en-US but that didn’t help. Is there any way I can get this program to run on Windows 10 Home?

  6. I’ve not used msg much before, and in my tests have only been able to send a message to myself on the same machine. However, there are some tips here… How to Use the Msg Command in Windows

    …and gives a registry fix that may help….

    ….or perhaps not — I still can’s send a message from my 10 Pro PC to my Home one. Seems even on a company network with domain/terminal servers it’s tricky to use, you may get some hints here…

    https://social.technet.microsoft.com…w7itprogeneral

Thema:

Can I run msg.exe on Windows 10 Home?

  1. Can I run msg.exe on Windows 10 Home? — Similar Threads — run msg exe

  2. windows 10: i can t run startup menu and .exe apps and windows settings

    in Windows 10 Customization

    windows 10: i can t run startup menu and .exe apps and windows settings: windows 10: i can t run startup menu and .exe apps and windows settings

    https://answers.microsoft.com/en-us/windows/forum/all/windows-10-i-can-t-run-startup-menu-and-exe-apps/caecebd7-4196-4f5c-b767-a94cec4a9a50

  3. Error msg: This PC can’t run Windows 10? But it is running Win10.

    in Windows 10 Installation and Upgrade

    Error msg: This PC can’t run Windows 10? But it is running Win10.: I try to do Upgrade install after boot from USB, get the Compatibility report. So I start Win normally and run setup.exe on the USB. Then I get the mysterious «This PC can’t run Windows 10.» error.

    However, the PC is running Win 10. So I can’t install Win 10 with the…

  4. Can not run .exe file. chrome setup

    in Windows 10 BSOD Crashes and Debugging

    Can not run .exe file. chrome setup: I need to install chrome so when i go to chrome.google.com i download the For Windows 10/8.1/8/7 64-bit. Once it downloads i open it, my cursor shows the loading symbol, but it never opens. any ideas on why?…
  5. Unable to run exe file in WIndows 10 Home

    in Windows 10 Installation and Upgrade

    Unable to run exe file in WIndows 10 Home: Hi,I am trying to run exe file in Windows 10 Home Single language. But it says you are running this device in S mode and this version I can switch out of S mode. Can anyone help me?…
  6. I have windows 10 and cannot run .exe files

    in Windows 10 BSOD Crashes and Debugging

    I have windows 10 and cannot run .exe files: I have windows 10 and cannot run .exe files or run powershell as admin or run regedit, when trying the result is a black screen. I am the admin of the Dell box. Any help would be greatly appreciated…
  7. can not preview the msg files on windows 10.

    in Windows 10 Software and Apps

    can not preview the msg files on windows 10.: Hi,

    I have just bought a new Dell computer with office 365 and windows 10, 64 bit version?

    I was looking for the user voice for windows , but I could not find it.

    I can not preview the msg files on windows 10, 64 bits version

    Is seems that there is no solution today : can…

  8. I can’t run .exe files.

    in Windows 10 BSOD Crashes and Debugging

    I can’t run .exe files.: Hi there! Recently, I was not able to run .exe files.
    For some reason, windows defender found svchost.exe as a virus, so I deleted it. This instantly closed all exe files I had running and closed task manager (which I cannot open anymore). I am very worried as there are many…
  9. Windows 10 not running .exe file

    in Windows 10 Installation and Upgrade

    Windows 10 not running .exe file: Hello,

    I am trying to open a specific .exe file for a program I’m trying to install. I get to Windows asking to allow for the program to make changes but after I select yes, nothing happens. I have tried things like turning off all firewalls/anti virus software, restarting…

  10. EXE files will not run in Windows 10

    in Windows 10 BSOD Crashes and Debugging

    EXE files will not run in Windows 10: Whenever I try to run «some» .exe files in Windows 10 I get the following error: ShellExecuteEx failed: code 1155. No application is associated with the specified file for this operation.

    How do I correct this?…

Users found this page by searching for:

  1. Msg. Windows 10 Home

    ,

  2. msg.exe win 10

    ,

  3. msg.exe windows 10 home

    ,

  4. arguments to run msg.exe in windows 10,
  5. msg.exe for win 10 home,
  6. msg.exe loadstring failed error 15105,
  7. msg loadstring failed error 15105,
  8. run msg.exe,
  9. msg.exe windows 10,
  10. Windows 10 home msg.exe,
  11. LoadString failed Error 15105


Windows 10 Forums

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Load vender dll fail please install vga driver как исправить
  • Load key error in libcrypto
  • Lmc hardware version error ezcad
  • Little inferno комбо error
  • Little big planet 2 ошибка 403

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии