While using variable substitution in extract_dir Robust File Copy On Windows Error occured.
Should variable substitution work inside extract_dir?
Am I missing something?
"version" : "1.0",
"extract_dir": "zipfileincluding$versionfolder"
Extracting... Error moving directory:
------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows
------------------------------------------------------------------------------- Started : 17 May, 2018 2:34:30 PM Source :
S:\Scoop\apps\Repo\1.1\_tmp\repo_extended_v$version\ Dest : S:\Scoop\apps\Repo\1.1\ Files : *.* Options : *.* /S /E /DCOPY:DA /COPY:DAT /MOVE /R:1000000
/W:30 ------------------------------------------------------------------------------ 2018/05/17 14:34:30 ERROR 2 (0x00000002) Accessing Source Directory
S:\Scoop\apps\Repo\1.1\_tmp\repo_extended_v$version\ The system cannot find the file specified.
At S:\Scoop\apps\scoop\current\lib\core.ps1:249 char:9
+ throw "Error moving directory: `n$out"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Error moving di...ile specified. :String) [], RuntimeException
+ FullyQualifiedErrorId : Error moving directory:
------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows ------------------------
------------------------------------------------------- Started : 17 May, 2018 2:34:30 PM Source : S:\Scoop\apps\Repo\1.1\_tmp\repo_extended_v$version\ Dest : S:\S
coop\apps\Repo\1.1\ Files : *.* Options : *.* /S /E /DCOPY:DA /COPY:DAT /MOVE /R:1000000 /W:30 -----------------------------------------------------------------------
------- 2018/05/17 14:34:30 ERROR 2 (0x00000002) Accessing Source Directory S:\Scoop\apps\Repo\1.1\_tmp\repo_extended_v$version\ The system cannot find the file specified.
This only works when the extract_dir is a child of autoupdate. The substitution happens only on an update.
Thank you for fast response :)
Most helpful comment
Thank you for fast response :)