【问题标题】:Mysterious batch file神秘的批处理文件
【发布时间】:2015-05-06 00:00:05
【问题描述】:

在搜索我的文件目录时,我发现了一个我没有创建的批处理文件。在运行程序时(在安全移除所有外部设备并注销所有可能的帐户后)一个 CMD 框会打开一秒钟然后关闭。在编辑代码使 CMD 框暂停后,我发现它在做什么。

以下是批处理文件的原文:

PUSHD .
cd %windir%\system32
@setlocal
@set logfile="%temp%\bcm_vc80redist.log"

@echo [%date% %time%] START vcredist_x86.exe /q:a /r:i /c:"msiexec /i vcredist.msi /qn" >> %logfile%
vcredist_x86.exe /q:a /r:i /c:"msiexec /i vcredist.msi /qn"

@if errorlevel 0 echo vcredist_x86.exe exited with errorlevel=%errorlevel% >> %logfile%
@echo [%date% %time%] END vcredist_x86.exe /q:a /r:i /c:"msiexec /i vcredist.msi /qn" >> %logfile%

@endlocal
POPD

{Pause}--This isnt part of the original code, this is added to stop the CMD box from closing. 

【问题讨论】:

  • 你有什么问题?
  • 您是否真的尝试过搜索vcredist_x86.exe?谈论偏执狂。

标签: cmd helper


【解决方案1】:

您似乎在某些时候安装了“Visual C++ Redistributable Package”,而批处理文件是安装的剩余部分。

您可以查看%temp%\bcm_vc80redist.log 以查看安装的确切内容。


来源Developer Tools Visual C++ Redistributable Packages for Visual Studio 2013

Visual C++ Redistributable Packages 安装运行时组件 运行通过使用构建的 C++ 应用程序所需的 视觉工作室 2013。

Visual C++ Redistributable Packages 安装运行时组件 运行通过使用开发的应用程序所需的 Visual Studio 2013,在没有 Visual Studio 2013 的计算机上 安装。这些包安装这些的运行时组件 库:C 运行时 (CRT)、标准 C++、ATL、MFC、C++ AMP 和 OpenMP。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-05-07
    • 2021-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多