Skip to content

Error with update_from_git.bat on Windows 10 - The system cannot find the file specified #1219

@ngwaihung

Description

@ngwaihung

Hi all, I'm currently on Windows 10 (64-bit), using Visual Studio Community 2017. Having tried running update_from_git.bat (as per build instructions for blocks environment here) as Admin from directory, and via x64 Native Tools Command Prompt for VS 2017, I kept encountering the below stated error.

It seems that Windows Power Shell / Command prompt has a tendency to revert to C:\Windows\system32 for command line operations. I'm currently running my OS on C: drive but have my operational data on D: drive.

Using AirSimPath = D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\

            Newer                 13.1 m        D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Plugins\AirSim\Source\AirLib\deps\MavLinkCom\lib\x64\Debug\MavLinkCom.bsc
            Newer                 12.9 m        D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Plugins\AirSim\Source\AirLib\deps\MavLinkCom\lib\x64\Release\MavLinkCom.bsc




D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>rd /s/q Build
The system cannot find the file specified.

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>rd /s/q Binaries
The system cannot find the file specified.

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>rd /s/q Intermediate
The system cannot find the file specified.

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>rd /s/q Saved
The system cannot find the file specified.

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>rd /s/q Plugins\AirSim\Binaries
The system cannot find the file specified.

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>rd /s/q Plugins\AirSim\Intermediate
The system cannot find the file specified.

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>rd /s/q Plugins\AirSim\Saved
The system cannot find the file specified.

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>del *.sln
Could Not Find D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks\*.sln

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>pause
Press any key to continue . . .

This is then followed by...

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>setlocal

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>del /q gen_temp.txt
Could Not Find D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks\gen_temp.txt

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>powershell -command "& { (Get-ItemProperty 'Registry::HKEY_CLASSES_ROOT\Unreal.ProjectFile\shell\rungenproj' -Name 'Icon' ).'Icon' } > gen_temp.tmp"
Get-ItemProperty : Cannot find path 'HKEY_CLASSES_ROOT\Unreal.ProjectFile\shell\rungenproj' because it does not exist.
At line:1 char:6
+ & { (Get-ItemProperty 'Registry::HKEY_CLASSES_ROOT\Unreal.ProjectFile ...
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (HKEY_CLASSES_RO...hell\rungenproj:String) [Get-ItemProperty], ItemNotFo
   undException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand


D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>type gen_temp.tmp  1>gen_temp.txt

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>set /p gen_bin= 0<gen_temp.txt

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>del /q gen_temp.tmp

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>del /q gen_temp.txt

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>for %f in (*.uproject) do (
echo Generating files for %f
 /projectfiles "D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks\%f"
)

D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks>(
echo Generating files for Blocks.uproject
 /projectfiles "D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks\Blocks.uproject"
)
Generating files for Blocks.uproject
'/projectfiles' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .

This is my directory listing

 Directory of D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Github\AirSim\Unreal\Environments\Blocks

02/07/2018  01:01 PM    <DIR>          .
02/07/2018  01:01 PM    <DIR>          ..
02/07/2018  10:58 AM               352 .gitignore
02/07/2018  10:58 AM               323 Blocks.uproject
02/07/2018  11:42 AM               193 clean.bat
02/07/2018  10:58 AM               445 clean.sh
02/07/2018  10:58 AM    <DIR>          Config
02/07/2018  10:58 AM    <DIR>          Content
02/07/2018  10:58 AM               391 GenerateProjectFiles.bat
02/07/2018  10:58 AM               608 GenerateProjectFiles.sh
02/07/2018  10:58 AM             1,958 package.bat
02/07/2018  11:17 AM    <DIR>          Plugins
02/07/2018  10:58 AM    <DIR>          Source
02/07/2018  11:35 AM               995 update_from_git.bat
02/07/2018  10:58 AM               381 update_from_git.sh
02/07/2018  10:58 AM               234 update_to_git.bat
02/07/2018  10:58 AM               379 update_to_git.sh

Would appreciate any advice on how to proceed with troubleshooting, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions