Melancholie
Новый пользователь
- Сообщения
- 7
- Реакции
- 0
set func_path=%func_name:.=\%
set repo_path=C:\Qt\pifagor\bin\
cd %repo_path%
cgen2 -f "%repo_path%repository\%func_path%\00.00\1.rig" "%repo_path%repository\%func_path%\00.00\1.cg%"
не заметил там такого расширения. Вместо этого некий cg% с каким-то потерянным процентом.батник для запуска одного файла с расширением .pfg:
Что такое путь D? (диск D?)а взять все файлы с этим расширением из пути D
set "func_path=%func_name:.=\%"
set repo_path=C:\Qt\pifagor\bin\repository
cd /d "%repo_path%"
for /f "delims=" %%a in ('dir /b /s /a-d "%repo_path%\*.pfg"') do cgen2 ...
@Echo off
cd C:\Qt\pifagor\bin\
set func_path=%func_name:.=\%
set repo_path=C:\Qt\pifagor\bin\repository
cd /d %repo_path%
for /f "delims=" %%a in ('dir /b /s /a-d "%repo_path%\*.pfg"') do @findstr /m "test" %%a
Pause
@echo off
SetLocal EnableExtensions EnableDelayedExpansion
set "repo_path=C:\Qt\pifagor\bin\repository"
for /f "delims=" %%a in ('dir /b /s /a-d "%repo_path%\*.pfg" ^| find /i "\test\"') do (
set "v=%%~dpna"
set "v=!v:*\test\=test\!"
set "v=!v:\=.!"
echo !v!
)
pause
@echo off
SetLocal EnableExtensions EnableDelayedExpansion
set "repo_path=C:\Qt\pifagor\bin\repository"
for /f "delims=" %%a in ('dir /b /s /a-d "%repo_path%\*.pfg" ^| find /i "\test\"') do (
set "v=%%~dpa"
for %%c in ("!v:~0,-1!") do (
set "v=%%~dpc"
set "v=!v:~0,-1!"
set "v=!v:*\test\=test\!"
set "v=!v:\=.!"
echo !v!
))
pause
goto :eof
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?