Fixed Automated Collection Command Prompt variable call (#2259)

* Fixed Automated Collection Command Prompt variable call

While using the commands from a batch file the old code wont work because of the way the variable is being called.
The addition of '%' fixed the issue.

* Update T1119.yaml

* add slash

* Update T1564.004.yaml

* Update T1564.004.yaml

Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
Noy-s1
2022-12-20 18:00:42 +02:00
committed by GitHub
parent 84d9edaaaa
commit 5c710cc04e
+1 -1
View File
@@ -12,7 +12,7 @@ atomic_tests:
command: | command: |
mkdir %temp%\T1119_command_prompt_collection >nul 2>&1 mkdir %temp%\T1119_command_prompt_collection >nul 2>&1
dir c: /b /s .docx | findstr /e .docx dir c: /b /s .docx | findstr /e .docx
for /R c: %f in (*.docx) do copy %f %temp%\T1119_command_prompt_collection for /R c:\ %f in (*.docx) do copy /Y %f %temp%\T1119_command_prompt_collection
cleanup_command: | cleanup_command: |
del %temp%\T1119_command_prompt_collection /F /Q >nul 2>&1 del %temp%\T1119_command_prompt_collection /F /Q >nul 2>&1
name: command_prompt name: command_prompt