Cmd exited with error code 9009

I have created a small CMD file to run an exe file, sleep for the time needed to run exe, and then exit the cmd window.
  • Remove From My Forums
  • Question

  • I have created a small CMD file to run an exe file, sleep for the time needed to run exe, and then exit the cmd window.

    The cmd file will open, run, and close with successful results on my local machine when ran from the folder with the exe also in it.

    I am using CA’s IT Client Manager to package the setup files and script and push it down to networked clients. The job fails on the target machines with the Exit code 9009 indicates possible error.

    When I look this error code up I get:
    Program is not recognized as an internal or external command, operable program or batch file. Usually indicates that command, application name or path has been misspelled when configuring the Action.

    I am thinking I need to change a path maybe for the script to run on client machines from the push, but am new to CMD/BATCH files and do not know what is required to do this.

    My script is as follows:
    setup.exe /config config.xml
    sleep 300
    exit

    It is located in the same folder as the exe.

    Any help would be greatly appreciated.

    Dennis

Answers

  • Hi,

    I am not familiar with CA’s IT Client Manager, but you are probably right that the problem is that the task can’t find the setup.exe and/or the sleep.exe.

    Two thoughts:

    1. You probably need to have the path to setup.exe in your script. For example: %~dp0setup.exe (%~dp0 will expand to the drive and path of the currently running script). If you use this, then of course setup.exe must sit in the same directory as the script.
    2. Why sleep?

    Bill

    • Marked as answer by

      Tuesday, March 15, 2011 4:31 AM

  • The error message means that the batch file is unable to locate setup.exe, most likely because you supplied neither drive letter nor the name of the folder where it resides. This is absolutely compulsory for batch files! The same goes for config.xml and
    sleep.exe — where do they reside?

    Note also that the following command is a native substitute for sleep.exe:

    ping  localhost -n 300 > nul

    • Marked as answer by
      IamMred
      Tuesday, March 15, 2011 4:31 AM

When I try to build VTK on VS 2010, I get this error error MSB6006: "cmd.exe" exited with code 9009. C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets 151 6 vtkhdf5

Before this, I build QT successfully from VS command prompt.
My opinion is that there’s something wrong with the paths of directories.
I’ve been searching on the internet for a while but couldn’t find a way to fix.

user2284570's user avatar

user2284570

2,8143 gold badges24 silver badges71 bronze badges

asked Aug 22, 2012 at 8:50

TahaYusuf's user avatar

3

You should first check the output window message of your VS2010 rather than just error list window.

After that, you can find some hint on your errors, like missing executable files or something like that. Errors may vary, but if your case is — exe file missing, then go to project properties:

Project(Your project name) -> Properties -> Configuration Properties
-> VC++ Directories -> Executable Directories

, add the folder of your missing exe.

Ganesh Kamath - 'Code Frenzy''s user avatar

answered Aug 16, 2013 at 2:31

zionpi's user avatar

zionpizionpi

2,54427 silver badges38 bronze badges

0

  • Remove From My Forums
  • Question

  • ———
    Error 30 error MSB6006: «cmd.exe» exited with code 9009. C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets 151

    The file in question is: Microsoft.CppCommons.targets

    ============================================
    < CustomBuild
          Sources                     =»@(CustomBuild)»
          BuildSuffix                 =»$(BuildSuffix)»

          TrackerLogDirectory         =»%(CustomBuild.TrackerLogDirectory)»
          MinimalRebuildFromTracking  =»%(CustomBuild.MinimalRebuildFromTracking)»

    TLogReadFiles               =»@(CustomBuildTLogReadFiles)»
          TLogWriteFiles              =»@(CustomBuildTLogWriteFiles)»
          TrackFileAccess             =»$(TrackFileAccess)»
          ToolArchitecture            =»$(CustomBuildToolArchitecture)»
          TrackerFrameworkPath        =»$(CustomBuildTrackerFrameworkPath)»
          TrackerSdkPath              =»$(CustomBuildTrackerSdkPath)»

          AcceptableNonZeroExitCodes  =»%(CustomBuild.AcceptableNonZeroExitCodes)»
    >

    ============================================

    Is there something in my custom build above that is causing me to get the error in the Title above?

Что означает это сообщение об ошибке? Что я могу сделать, чтобы исправить эту проблему?

AssemblyInfo.cs вышел с кодом 9009


Проблема, вероятно, происходит как часть этапа после сборки в .NET-решении в Visual Studio.

4b9b3361

Ответ 1

Вы пытались указать полный путь к команде, которая выполняется в команде события pre-or post-build event?

Я получал ошибку 9009 из-за команды xcopy post-build event в Visual Studio 2008.

Команда "xcopy.exe /Y C:projectpathproject.config C:compilepath" вышла с кодом 9009.

Но в моем случае это было также прерывистым. То есть сообщение об ошибке сохраняется до перезагрузки компьютера и исчезает после перезагрузки компьютера. Он вернулся после некоторой отдаленной проблемы, которую я еще не обнаружил.

Однако, в моем случае, при условии, что команда с полным пути решена, проблема:

c:windowssystem32xcopy.exe /Y C:projectpathproject.config C:compilepath 

Вместо просто:

xcopy.exe /Y C:projectpathproject.config C:compilepath

Если у меня нет полного пути, он запускается некоторое время после перезапуска, а затем останавливается.

Также, как упоминалось в комментариях к этому сообщению, , если есть пробелы в полном пути, вам нужно кавычки вокруг команды. Например.

"C:The folder with spacesABCDEFxcopy.exe" /Y C:projectpathproject.config C:compilepath

Обратите внимание, что этот пример в отношении пробелов не проверен.

Ответ 2

Код ошибки 9009 означает, что файл ошибки не найден. Все основные причины, изложенные в ответах здесь, являются хорошим источником, чтобы понять, почему, но сама ошибка просто означает плохой путь.

Ответ 3

Это происходит, когда вам не хватает некоторых параметров среды для использования инструментов Microsoft Visual Studio x86.
Поэтому попробуйте добавить в качестве первой команды на этапах после сборки:

Для Visual Studio 2010 используйте:

call "$(DevEnvDir)..Toolsvsvars32.bat"

Как уже упоминалось в комментариях @FlorianKoch, для VS 2017 используйте:

call "$(DevEnvDir)..ToolsVsDevCmd.bat"

Его следует поместить перед любой другой командой.
Он установит среду для использования инструментов Microsoft Visual Studio x86.

Ответ 4

Скорее всего, у вас есть место в результирующем пути.

Вы можете обойти это, указав пути, тем самым позволяя пробелы. Например:

xcopy "$(SolutionDir)Folder NameFile To Copy.ext" "$(TargetDir)" /R /Y /I

Ответ 5

Имела ту же переменную после изменения переменной PATH из переменных окружения в Win 7. Возвращение к умолчанию помогло.

Ответ 6

У меня была ошибка 9009, когда событие post post script пыталось запустить пакетный файл, который не существовал в указанном пути.

Ответ 7

Я вызвал эту ошибку, когда я отредактировал переменную окружения Path. После редактирования я случайно добавил Path= в начало строки пути. С такой измененной переменной пути мне не удалось запустить XCopy в командной строке (никакая команда или файл не найден), а Visual Studio отказалась запускать шаг после сборки, ссылаясь на ошибку с кодом 9009.

XCopy обычно находится в C:WindowsSystem32. Как только переменная окружения Path разрешила XCopy получить разрешение в приглашении DOS, Visual Studio хорошо построила мое решение.

Ответ 8

Если script на самом деле делает то, что ему нужно сделать, и просто Visual Studio выдает вам сообщение об ошибке, которую вы могли бы просто добавить:

exit 0

до конца script.

Ответ 9

Проверьте орфографию. Я пытался вызвать исполняемый файл, но имел имя с ошибкой и дал мне сообщение exited with code 9009.

Ответ 10

В моем случае перед вызовом команды мне пришлось сначала записать «CD» ( «Изменить каталог» ) в соответствующий каталог, поскольку исполняемый файл, который я вызывал, был в моей директории проектов.

Пример:

cd "$(SolutionDir)"
call "$(SolutionDir)build.bat"

Ответ 11

Моя точная ошибка была

The command "iscc /DConfigurationName=Debug "C:ProjectsBlahblahblahsetup.iss"" exited with code 9009.

9009 означает, что файл не найден, но на самом деле он не смог найти часть «iscc» команды.

Я исправил его, добавив ";C:Program FilesInno Setup 5 (x86)" в переменную системной среды "path"

Ответ 12

Другой вариант:

Сегодня я вызываю интерпретатор python из cron в win32 и беру ExitCode (% ERRORLEVEL%) 9009, потому что системная учетная запись, используемая cron, не имеет пути к каталогу Python.

Ответ 13

Проблема в моем случае возникла, когда я попытался использовать команду в командной строке для события Post-build в моей тестовой библиотеке классов. Когда вы используете такие кавычки:

"$(SolutionDir)packagesNUnit.Runners.2.6.2toolsnunit" "$(TargetPath)" 

или если вы используете консоль:

"$(SolutionDir)packagesNUnit.Runners.2.6.2toolsnunit-console" "$(TargetPath)"

Это исправило проблему для меня.

Ответ 14

Кроме того, убедитесь, что в окне редактирования событий post build в вашем проекте нет разрывов строк. Иногда копирование команды xcopy из сети, когда она многострочная и вставляет ее в VS, вызовет проблему.

Ответ 15

Я добавил » > myFile.txt» в конец строки на этапе предварительной сборки, а затем проверил файл на фактическую ошибку.

Ответ 16

Тфа ответ был отклонен, но на самом деле может вызвать эту проблему. Благодаря hanzolo я посмотрел в окне вывода и нашел следующее:

3>'gulp' is not recognized as an internal or external command,
3>operable program or batch file.
3>D:dev<filepath>Web.csproj(4,5): error MSB3073: The command "gulp clean" exited with code 9009.

После запуска npm install -g gulp я перестал получать эту ошибку. Если вы получаете эту ошибку в Visual Studio, проверьте окно вывода и посмотрите, является ли проблема неустановленной переменной среды.

Ответ 17

Для меня дисковое пространство было низким, и ожидается, что файлы, которые не могут быть записаны, будут представлены позже. В других ответах упоминались недостающие файлы (или неправильно названные/неправильные ссылки на файлы), но основной причиной было отсутствие дискового пространства.

Ответ 18

Еще один вариант файла не найден, из-за пробелов в пути. В моем случае в msbuild script. Мне нужно было использовать строки HTML и ampquot; в команде exec.

<!-- Needs quotes example with my Buildscript.msbuild file --> 
<Exec Command="&quot;$(MSBuildThisFileDirectory)wixwixscript.bat&quot; $(VersionNumber) $(VersionNumberShort)" 
    ContinueOnError="false" 
    IgnoreExitCode="false" 
    WorkingDirectory="$(MSBuildProjectDirectory)wix" />

Ответ 19

То же, что и другие ответы, в моем случае это было из-за недостающего файла. Чтобы узнать, что является отсутствующим файлом, вы можете перейти в окно вывода, и он сразу покажет вам, что пропало.

Чтобы открыть окно вывода в Visual Studio:

  • Ctrl + Alt + O
  • Вид > Выход

введите описание изображения здесь

Ответ 20

Я исправил это, просто перезапустив Visual Studio — я только что запустил dotnet tool install xxx в окне консоли, и VS еще не выбрал новые переменные среды и/или параметры пути, которые были изменены, поэтому быстрый перезапуск решил проблему.

Ответ 21

Это довольно просто, я столкнулся с этой проблемой и смущающе провалился.

Приложение использует аргументы командной строки, я удалил их, а затем добавил их обратно. Вдруг проект не смог построить.

Visual Studio → Свойства проекта → убедитесь, что вы используете вкладку «Отладка» (не вкладка «Build Events» ) → Аргументы командной строки

Я использовал текстовую область Post и Pre-build, которая была неправильной в этом случае.

Ответ 22

Для меня это произошло после обновления пакетов nuget от одной версии PostSharp до следующего в большом решении (проект ~ 80).
У меня есть ошибки компилятора для проектов, которые имеют команды в событиях PreBuild.

‘cmd’ не распознается как внутренняя или внешняя команда, операционная программа или командный файл.
C:Program Files (x86)MSBuild14.0binMicrosoft.Common.CurrentVersion.targets(1249,5): ошибка MSB3073: команда «cmd/c C:GitReposmainServiceInterfacesDEV.ConfigPreBuild.cmd ServiceInterfaces» вышел с кодом 9009.

Переменная PATH была испорчена слишком долго, с несколькими повторяющимися путями, связанными с PostSharp.Patterns.Diagnostics.
Когда я закрыл Visual Studio и снова открыл его, проблема была исправлена.

Ответ 23

Мое решение было просто: как вы пытались отключить его и снова? Поэтому я перезапустил компьютер, и проблема исчезла.

Ответ 24

Я также столкнулся с этой проблемой 9009, столкнувшись с ситуацией перезаписи.

В принципе, если файл уже существует и вы не указали переключатель /y (который автоматически перезаписывается), эта ошибка может возникнуть при запуске из сборки.

Ответ 25

На самом деле я заметил, что по какой-то причине переменная среды% windir% иногда стирается. То, что сработало для меня, было изменено на переменную среды windir на c:windows, перезапустить VS и что это. Таким образом, вы не можете изменять файлы решений.

Ответ 26

По крайней мере, в Visual Studio Ultimate 2013, версии 12.0.30723.00 Update 3, невозможно разделить оператор if/else с разрывом строки:

работы:

if '$(BuildingInsideVisualStudio)' == 'true' (echo local) else (echo server)

не работает:

if '$(BuildingInsideVisualStudio)' == 'true' (echo local) 
else (echo server)

Ответ 27

Еще одна причина:
Если ваше событие pre-build ссылается на другой путь к bin файлам, и вы видите эту ошибку при запуске msbuild, но не Visual Studio, тогда вам нужно вручную организовать проекты в файле *.sln(с текстовым редактором), чтобы проект нацелены на событие, которое создается перед проектом события. Другими словами, msbuild использует порядок, в котором проекты перечислены в файле *.sln, тогда как VS использует знания зависимостей проекта. Это произошло, когда инструмент, который создает базу данных, которая будет включена в wixproj, была указана после wixproj.

Ответ 28

Я думаю, что в моем случае были русские символы в пути (все проекты были в папке пользователя). Когда я помещал решение в другую папку (прямо на диск), все стало нормально.

Ответ 29

Мое решение состояло в том, чтобы создать копию файла и добавить шаг к заданию сборки, чтобы скопировать мой файл поверх оригинала.

Ответ 30

Для меня это была перезагрузка Visual Studio.
У меня была построена gulp с кодом 9009.
Я установил gulp, но это не отразилось, пока я не перезапустил Visual Studio.

Did you try to give the full path of the command that is running in the pre- or post-build event command?

I was getting the 9009 error due to a xcopy post-build event command in Visual Studio 2008.

The command "xcopy.exe /Y C:projectpathproject.config C:compilepath" exited with code 9009.

But in my case it was also intermittent. That is, the error message persists until a restart of the computer, and disappears after a restart of the computer. It is back after some remotely related issue I am yet to discover.

However, in my case providing the command with its full path solved the issue:

c:windowssystem32xcopy.exe /Y C:projectpathproject.config C:compilepath 

Instead of just:

xcopy.exe /Y C:projectpathproject.config C:compilepath

If I do not have the full path, it runs for a while after a restart, and then stops.

Also as mentioned on the comments to this post, if there are spaces in full path, then one needs quotation marks around the command. E.g.

"C:The folder with spacesABCDEFxcopy.exe" /Y C:projectpathproject.config C:compilepath

Note that this example with regards to spaces is not tested.

3 ответа

Просто наткнулся на эту нить.

У меня была такая же ошибка. В моем случае путь swig.exe, который искал мой проект, был неправильным. Моя проблема была исправлена ​​после того, как я убедился, что пакет SWIG находится на том же пути, что и в макете «Свойства проекта».

Jag
24 июнь 2014, в 15:32

Поделиться

Когда у меня возникла эта проблема, это было из-за отсутствия исполняемых путей Direct X в менеджере свойств. Как было предложено в этом потоке: MSB6006: «cmd.exe» вышел с кодом 9009

При проверке моего журнала сборки я обнаружил, что

'fxc' is not recognized as an internal or external command

, которое привело меня к этому решению: ‘fxc.exe’ не распознается как внутренний или внешний команда

Я зашел в свой менеджер свойств в Microsoft.Cpp.Win32.user и добавил правильные пути DirectX SDK к исполняемым файлам, Include и библиотеке (C:Program FilesMicrosoft DirectX SDKUtilitiesbinx64, C:Program FilesMicrosoft DirectX SDKInclude, C:Program FilesMicrosoft DirectX SDKLibx86 соответственно)

whotyjones
13 сен. 2013, в 20:32

Поделиться

Эта ошибка показывает, что выполнение команды в среде командной строки не выполняется. Вы должны просмотреть выходные журналы (например, view- > output в visual studio) и найти эту ошибку. Например, в следующем журнале показано, что команда Windows не может распознать синтаксис «make». Итак, я заменил его на «nmake» и установил для него переменную PATH.

2>  'make' is not recognized as an internal or external command,

2 > оперативная программа или командный файл.
2 > C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.CppCommon.targets(170,5): ошибка MSB6006: «cmd.exe» завершен с кодом 9009.

Alireza Parvizimosaed
11 май 2016, в 03:46

Поделиться

Ещё вопросы

  • 0Диалог jquery показывает данные из предыдущего запроса ajax
  • 0JQuery переключение элементов для редактирования
  • 1LINQ Multiple GroupBy Query Выполнение в несколько раз медленнее, чем T-SQL
  • 0MySQL / Hive запрос для одного результата на элемент в массиве
  • 0Различия в привязке области видимости AngularJS между {foo: «=»} и {foo: «= myFoo»}
  • 1Как увидеть полную ошибку сборки муравья, которая обрезана
  • 0переменная объема не отражена в директиве
  • 0Я не могу получить доступ к Facebook страницам (учетной записи) php sdk 4.0
  • 1Модульное тестирование Vue — textContent не содержит ожидаемых propsData
  • 0ожидаемое promary-выражение перед «void» c ++
  • 1Неожиданный маркер ‘}’
  • 0Как отсортировать вектор <pair <int, pair <int, pair <string, pair <int, int>>>>>?
  • 0Структура папок / файлов ZEND Framework
  • 1python2.7 pip install EnvironmentError Illega последовательность байтов
  • 0Угловое наследование JS-контроллера
  • 0как перейти на график API версии 2.0 для этого вызова
  • 1Как оптимизировать ListView с разным макетом элемента
  • 1Android: MediaStore.Images.Media.EXTERNAL_CONTENT_URI… показывать картинки в полном размере?
  • 0PHP получает запрос, ничего не возвращающий
  • 0Увеличить BCP: не удается найти BCP
  • 1Привязка модели слушателя событий слоя карт Google Ionic + Angular2
  • 0Как выбрать html dom более 1 раза с помощью jQuery?
  • 0Повторная отправка http-запроса, более быстрая (асинхронный режим)
  • 0AngularJS ng-класс и поведение проверки формы
  • 0Изменение поля Div с изменением размера экрана
  • 0Используя PHP для отправки электронной почты, измените ОТ, чтобы это не имя моего сервера
  • 0Как использовать радиокнопку в AngularJS 2?
  • 0GIF-изображение не анимируется при отображении загрузчика / счетчика в jquery
  • 1Как использовать несколько обратных вызовов при зацикливании данных
  • 1Лучший способ создавать XML во время выполнения
  • 1Камера Android, внутренняя Listoption?
  • 0Проектирование базы данных — система «много ко многим» или «один ко многим»?
  • 1Общая переменная между приложением C # и приложением VBA
  • 0Случайный элемент с вероятностью из таблицы SQL в Java
  • 0Выполнение вызовов PayPal API в PHP без cURL
  • 0Печать и перенаправление документа PDF
  • 1Реализация NamingStrategy в Hibernate 5 (сделать автоматически сгенерированные имена столбцов UPPERCASE)
  • 0Cakephp генерирует строчные URL с именами контроллеров в верхнем регистре
  • 0предотвратить сброс сброса php после отправки
  • 1Удалить данные JSON в массиве
  • 0Использование конструктора другого класса
  • 1Нужно ли создавать фиктивные переменные для порядковых переменных? Также получаю ошибку с конвертацией
  • 0Как экспортировать данные из SQlite в CSV или Excel или просто что-нибудь?
  • 0Группировать по родителю, но не по ребенку
  • 0Проверьте, является ли сумма / произведение цифр в четном положении делителем числа
  • 0Конвертировать NodeJs MySQL результат в доступный объект JSON
  • 0закрыть скрытый div и кликнуть другой div
  • 1Активность остается на экране после вызова другой активности из сервиса и завершения на Android
  • 0добавить элемент SVG во время выполнения в угловой с двухсторонней привязкой данных
  • 0Добавить больше данных в существующие данные
  • Zumokufu

  • Topic Author

The Building section on the github page is pretty vague….. I installed VS2019 Community edition, with the correct SDK and build tools, Git for Windows for cloning the repo and all submodules and Python 3.8.0. There is no guide anywhere on how to build. I’m on a fully updated Windows 8.1 system. Anyone care to help?

error log:

Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB6006	"cmd.exe" exited with code 9009.	ReShade	F:Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv150Microsoft.CppCommon.targets	209	

output log:

1>------ Build started: Project: ReShade FX, Configuration: Release x64 ------
2>------ Build started: Project: gl3w, Configuration: Release x64 ------
3>------ Build started: Project: ImGui, Configuration: Release x64 ------
4>------ Build started: Project: MinHook, Configuration: Release x64 ------
5>------ Build started: Project: stb, Configuration: Release x64 ------
6>------ Skipped Build: Project: ReShade Setup, Configuration: Release Any CPU ------
6>Project not selected to build for this solution configuration 
7>------ Skipped Build: Project: Injector, Configuration: Release x64 ------
7>Project not selected to build for this solution configuration 
1>effect_codegen_glsl.cpp
2>gl3w.c
3>imgui.cpp
4>buffer.c
5>stb_impl.c
4>hde32.c
4>hde64.c
3>imgui_draw.cpp
2>gl3w.vcxproj -> F:reshadebinx64Releasegl3w.lib
4>hook.c
3>imgui_widgets.cpp
4>trampoline.c
3>Generating Code...
1>effect_codegen_hlsl.cpp
5>stb.vcxproj -> F:reshadebinx64Releasestb.lib
4>Generating Code...
4>MinHook.vcxproj -> F:reshadebinx64ReleaseMinHook.lib
1>effect_codegen_spirv.cpp
1>effect_expression.cpp
1>effect_lexer.cpp
3>ImGui.vcxproj -> F:reshadebinx64ReleaseImGui.lib
1>effect_parser.cpp
1>effect_preprocessor.cpp
1>effect_symbol_table.cpp
1>ReShadeFX.vcxproj -> F:reshadebinx64ReleaseReShadeFX64.lib
8>------ Build started: Project: ReShade, Configuration: Release App x64 ------
9>------ Skipped Build: Project: FXC, Configuration: Release x64 ------
9>Project not selected to build for this solution configuration 
8>Performing Custom Build Tools
8>'glslangValidator.exe' is not recognized as an internal or external command,
8>operable program or batch file.
8>Performing Custom Build Tools
8>'glslangValidator.exe' is not recognized as an internal or external command,
8>operable program or batch file.
8>F:Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv150Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 9009.
8>Done building project "ReShade.vcxproj" -- FAILED.
========== Build: 5 succeeded, 1 failed, 0 up-to-date, 3 skipped ==========

Please Log in or Create an account to join the conversation.

  • crosire

  • Zumokufu

  • Topic Author

Well poo, it says Vulkan SDK is optional if building for Vulkan so I didn’t install it lol! Ty for sharing the link.

Last edit: 3 years 1 month ago by Zumokufu.

Please Log in or Create an account to join the conversation.

lsegura003

Posts: 19
Joined: 07 Sep 2016, 20:03

Error 8 error MSB6006: «cmd.exe» exited with code 9009.

Hello,

i am trying to build source code as stated here:

http://www.bci2000.org/wiki/index.php/P … tart_Guide

I am using Cmake 3.6.2 and Visual Studio 2012 express (linked in that URL).

I tried it in 2 different computers, one with Windows 7 and other one with windows 10 (did the same process, had the same error).

After i obtain the BCI2000.sln file, i open it with visual studio 2012, set it to «release» and try to build a single module (application/p3speller).

I get this error at about 85% of the build process:

Error 8 error MSB6006: «cmd.exe» exited with code 9009. C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V110Microsoft.CppCommon.targets 172 5 AppBundler (BuildToolsAppBundlerAppBundler)

Could someone help me?

Thanks.


lsegura003

Posts: 19
Joined: 07 Sep 2016, 20:03

Re: Error 8 error MSB6006: «cmd.exe» exited with code 9009.

Post

by lsegura003 » 13 Sep 2016, 08:14

Following the trace, i reached this lines:

Generating Code…
16> Creating library C:/Users/User/Desktop/BCI2000source/BCI2000src/build/CMakeFiles/core/Application/P3Speller/Release/P3Speller.lib and object C:/Users/User/Desktop/BCI2000source/BCI2000src/build/CMakeFiles/core/Application/P3Speller/Release/P3Speller.exp
16> P3Speller.vcxproj -> C:UsersUserDesktopBCI2000sourceBCI2000srcbuildCMakeFilescoreApplicationP3SpellerReleaseP3Speller.exe
16> Creating Bundle:
16> Access denied.
16> Executable may fail to run when moved to a different machine.
16> «»C:UsersUserDesktopBCI2000sourceBCI2000srcbuildbuildutilsAppBundler»» not recognised as an internal or external command,
16> program or batch file.
16> Error creating bundle.
========== Build: 15 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Not pretty sure what it is failing tough.

16> «»C:UsersUserDesktopBCI2000sourceBCI2000srcbuildbuildutilsAppBundler»» not recognised as an internal or external command,
16> program or batch file.

It seems like «»C:UsersUserDesktopBCI2000sourceBCI2000srcbuildbuildutilsAppBundler»» must be run, but it gets access denied. Anyway of solving this?


lsegura003

Posts: 19
Joined: 07 Sep 2016, 20:03

Re: Error 8 error MSB6006: «cmd.exe» exited with code 9009.

Post

by lsegura003 » 13 Sep 2016, 13:03

Solved: Anti virus (avast in my case) was preventing that file from launching. Deactivating it did the thing.


pbrunner

Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Error 8 error MSB6006: «cmd.exe» exited with code 9009.

Post

by pbrunner » 16 Sep 2016, 11:42

lsegura003,

this is a known issue — many antivirus scanners consider unknown files as highly suspicious. For that reason, we code sign the binary distributions of BCI2000 and have them whitelisted in addition with the major antivirus software programs. If you are building BCI2000 on your own you will likely need to either exclude the BCI2000 path from the antivirus scanning, or de-activate the scanner completely.

Regards, Peter


Who is online

Users browsing this forum: No registered users and 1 guest

This article features error number Code 9009, commonly known as Microsoft Error Code 9009 described as Error 9009: Microsoft has encountered a problem and needs to close. We are sorry for the inconvenience.

About Runtime Code 9009

Runtime Code 9009 happens when Microsoft fails or crashes whilst it’s running, hence its name. It doesn’t necessarily mean that the code was corrupt in some way, but just that it did not work during its run-time. This kind of error will appear as an annoying notification on your screen unless handled and corrected. Here are symptoms, causes and ways to troubleshoot the problem.

Definitions (Beta)

Here we list some definitions for the words contained in your error, in an attempt to help you understand your problem. This is a work in progress, so sometimes we might define the word incorrectly, so feel free to skip this section!

  • Error code — An error code is a value returned to provide context on why an error occurred

Symptoms of Code 9009 — Microsoft Error Code 9009

Runtime errors happen without warning. The error message can come up the screen anytime Microsoft is run. In fact, the error message or some other dialogue box can come up again and again if not addressed early on.

There may be instances of files deletion or new files appearing. Though this symptom is largely due to virus infection, it can be attributed as a symptom for runtime error, as virus infection is one of the causes for runtime error. User may also experience a sudden drop in internet connection speed, yet again, this is not always the case.

Fix Microsoft Error Code 9009 (Error Code 9009)
(For illustrative purposes only)

Causes of Microsoft Error Code 9009 — Code 9009

During software design, programmers code anticipating the occurrence of errors. However, there are no perfect designs, as errors can be expected even with the best program design. Glitches can happen during runtime if a certain error is not experienced and addressed during design and testing.

Runtime errors are generally caused by incompatible programs running at the same time. It may also occur because of memory problem, a bad graphics driver or virus infection. Whatever the case may be, the problem must be resolved immediately to avoid further problems. Here are ways to remedy the error.

Repair Methods

Runtime errors may be annoying and persistent, but it is not totally hopeless, repairs are available. Here are ways to do it.

If a repair method works for you, please click the upvote button to the left of the answer, this will let other users know which repair method is currently working the best.

Please note: Neither ErrorVault.com nor it’s writers claim responsibility for the results of the actions taken from employing any of the repair methods listed on this page — you complete these steps at your own risk.

Method 1 — Close Conflicting Programs

When you get a runtime error, keep in mind that it is happening due to programs that are conflicting with each other. The first thing you can do to resolve the problem is to stop these conflicting programs.

  • Open Task Manager by clicking Ctrl-Alt-Del at the same time. This will let you see the list of programs currently running.
  • Go to the Processes tab and stop the programs one by one by highlighting each program and clicking the End Process buttom.
  • You will need to observe if the error message will reoccur each time you stop a process.
  • Once you get to identify which program is causing the error, you may go ahead with the next troubleshooting step, reinstalling the application.

Method 2 — Update / Reinstall Conflicting Programs

Using Control Panel

  • For Windows 7, click the Start Button, then click Control panel, then Uninstall a program
  • For Windows 8, click the Start Button, then scroll down and click More Settings, then click Control panel > Uninstall a program.
  • For Windows 10, just type Control Panel on the search box and click the result, then click Uninstall a program
  • Once inside Programs and Features, click the problem program and click Update or Uninstall.
  • If you chose to update, then you will just need to follow the prompt to complete the process, however if you chose to Uninstall, you will follow the prompt to uninstall and then re-download or use the application’s installation disk to reinstall the program.

Using Other Methods

  • For Windows 7, you may find the list of all installed programs when you click Start and scroll your mouse over the list that appear on the tab. You may see on that list utility for uninstalling the program. You may go ahead and uninstall using utilities available in this tab.
  • For Windows 10, you may click Start, then Settings, then choose Apps.
  • Scroll down to see the list of Apps and features installed in your computer.
  • Click the Program which is causing the runtime error, then you may choose to uninstall or click Advanced options to reset the application.

Method 3 — Update your Virus protection program or download and install the latest Windows Update

Virus infection causing runtime error on your computer must immediately be prevented, quarantined or deleted. Make sure you update your virus program and run a thorough scan of the computer or, run Windows update so you can get the latest virus definition and fix.

Method 4 — Re-install Runtime Libraries

You might be getting the error because of an update, like the MS Visual C++ package which might not be installed properly or completely. What you can do then is to uninstall the current package and install a fresh copy.

  • Uninstall the package by going to Programs and Features, find and highlight the Microsoft Visual C++ Redistributable Package.
  • Click Uninstall on top of the list, and when it is done, reboot your computer.
  • Download the latest redistributable package from Microsoft then install it.

Method 5 — Run Disk Cleanup

You might also be experiencing runtime error because of a very low free space on your computer.

  • You should consider backing up your files and freeing up space on your hard drive
  • You can also clear your cache and reboot your computer
  • You can also run Disk Cleanup, open your explorer window and right click your main directory (this is usually C: )
  • Click Properties and then click Disk Cleanup

Method 6 — Reinstall Your Graphics Driver

If the error is related to a bad graphics driver, then you may do the following:

  • Open your Device Manager, locate the graphics driver
  • Right click the video card driver then click uninstall, then restart your computer

Method 7 — IE related Runtime Error

If the error you are getting is related to the Internet Explorer, you may do the following:

  1. Reset your browser.
    • For Windows 7, you may click Start, go to Control Panel, then click Internet Options on the left side. Then you can click Advanced tab then click the Reset button.
    • For Windows 8 and 10, you may click search and type Internet Options, then go to Advanced tab and click Reset.
  2. Disable script debugging and error notifications.
    • On the same Internet Options window, you may go to Advanced tab and look for Disable script debugging
    • Put a check mark on the radio button
    • At the same time, uncheck the «Display a Notification about every Script Error» item and then click Apply and OK, then reboot your computer.

If these quick fixes do not work, you can always backup files and run repair reinstall on your computer. However, you can do that later when the solutions listed here did not do the job.

Other languages:

Wie beheben Fehler 9009 (Microsoft-Fehlercode 9009) — Fehler 9009: Microsoft hat ein Problem festgestellt und muss geschlossen werden. Wir entschuldigen uns für die Unannehmlichkeiten.
Come fissare Errore 9009 (Codice errore Microsoft 9009) — Errore 9009: Microsoft ha riscontrato un problema e deve essere chiuso. Ci scusiamo per l’inconveniente.
Hoe maak je Fout 9009 (Microsoft-foutcode 9009) — Fout 9009: Microsoft heeft een probleem ondervonden en moet worden afgesloten. Excuses voor het ongemak.
Comment réparer Erreur 9009 (Code d’erreur Microsoft 9009) — Erreur 9009 : Microsoft a rencontré un problème et doit fermer. Nous sommes désolés du dérangement.
어떻게 고치는 지 오류 9009 (마이크로소프트 오류 코드 9009) — 오류 9009: Microsoft에 문제가 발생해 닫아야 합니다. 불편을 끼쳐드려 죄송합니다.
Como corrigir o Erro 9009 (Código de erro 9009 da Microsoft) — Erro 9009: A Microsoft encontrou um problema e precisa fechar. Lamentamos o inconveniente.
Hur man åtgärdar Fel 9009 (Microsoft felkod 9009) — Fel 9009: Microsoft har stött på ett problem och måste avslutas. Vi är ledsna för besväret.
Как исправить Ошибка 9009 (Код ошибки Microsoft 9009) — Ошибка 9009: Возникла ошибка в приложении Microsoft. Приложение будет закрыто. Приносим свои извинения за неудобства.
Jak naprawić Błąd 9009 (Kod błędu Microsoft 9009) — Błąd 9009: Firma Microsoft napotkała problem i musi zostać zamknięta. Przepraszamy za niedogodności.
Cómo arreglar Error 9009 (Código de error de Microsoft 9009) — Error 9009: Microsoft ha detectado un problema y debe cerrarse. Lamentamos las molestias.

The Author About The Author: Phil Hart has been a Microsoft Community Contributor since 2010. With a current point score over 100,000, they’ve contributed more than 3000 answers in the Microsoft Support forums and have created almost 200 new help articles in the Technet Wiki.

Follow Us: Facebook Youtube Twitter

Recommended Repair Tool:

This repair tool can fix common computer problems such as blue screens, crashes and freezes, missing DLL files, as well as repair malware/virus damage and more by replacing damaged and missing system files.

STEP 1:

Click Here to Download and install the Windows repair tool.

STEP 2:

Click on Start Scan and let it analyze your device.

STEP 3:

Click on Repair All to fix all of the issues it detected.

DOWNLOAD NOW

Compatibility

Requirements

1 Ghz CPU, 512 MB RAM, 40 GB HDD
This download offers unlimited scans of your Windows PC for free. Full system repairs start at $19.95.

Article ID: ACX07535EN

Applies To: Windows 10, Windows 8.1, Windows 7, Windows Vista, Windows XP, Windows 2000

Speed Up Tip #1

Defragging the Hard Disk:

Windows has built-in tools that you can use to defrag your hard disk that can speed up your computer. If you want more features and advanced functionalities than what the in-built Windows tool can offer, reputable third-party programs are also available to help you maximize your computer’s disk space.

Click Here for another way to speed up your Windows PC

Понравилась статья? Поделить с друзьями:
  • Cmd exe что это ошибка
  • Cmd exe ошибка приложения 0xc0000142 windows 10
  • Cmd exe ошибка при запуске приложения 0xc0000142
  • Cloudflare ошибка 520
  • Cloudflare ошибка 503