47 lines
1.2 KiB
Batchfile
Executable file
47 lines
1.2 KiB
Batchfile
Executable file
@echo off
|
||
chcp 65001 > nul
|
||
if "%~1"=="" (
|
||
echo You must specify the name prefix >&2
|
||
echo E.g. prefix "my_prefix" : >&2
|
||
echo h___фитирование.nb --^> my_prefix_фитирование.nb >&2
|
||
exit /b 1
|
||
) else (
|
||
if exist "h____фитирование.nb" (
|
||
rename "h____фитирование.nb" "%~1_фитирование.nb"
|
||
) else (
|
||
echo skipped "h____фитирование.nb" due to absence
|
||
)
|
||
|
||
if exist "h____pr_Qw2.nb" (
|
||
rename "h____pr_Qw2.nb" "%~1_pr_Qw2.nb"
|
||
) else (
|
||
echo skipped "h____pr_Qw2.nb" due to absence
|
||
)
|
||
if exist "h____pr_Qw1.nb" (
|
||
rename "h____pr_Qw1.nb" "%~1_pr_Qw1.nb"
|
||
) else (
|
||
echo skipped "h____pr_Qw1.nb" due to absence
|
||
)
|
||
|
||
if exist "h____osc_Qw2.nb" (
|
||
rename "h____osc_Qw2.nb" "%~1_osc_Qw2.nb"
|
||
) else (
|
||
echo skipped "h____osc_Qw2.nb" due to absence
|
||
)
|
||
if exist "h____osc_Qw1.nb" (
|
||
rename "h____osc_Qw1.nb" "%~1_osc_Qw1.nb"
|
||
) else (
|
||
echo skipped "h____osc_Qw1.nb" due to absence
|
||
)
|
||
|
||
if exist "h____gid_Qw2.nb" (
|
||
rename "h____gid_Qw2.nb" "%~1_gid_Qw2.nb"
|
||
) else (
|
||
echo skipped "h____gid_Qw2.nb" due to absence
|
||
)
|
||
if exist "h____gid_Qw1.nb" (
|
||
rename "h____gid_Qw1.nb" "%~1_gid_Qw1.nb"
|
||
) else (
|
||
echo skipped "h____gid_Qw1.nb" due to absence
|
||
)
|
||
)
|