Changing folder name Batch filepath -
in batch file, first create lala file in folder: c:lala-20160322-othercode , next day creates file in lala-20160323-othercode , on. in same batch file, want use created file. not know write after -filepath since lala in differnt folder every time. batchfile in folder above lala-20160322-othercode. how can this? file called lala, on computer there many folder (every day folder) lala. new batch files. many thanks!!!!!!!!!!!!!!!!
code:
@echo off setlocal call "c:\folder\nameofpythonprogramm" pythonfunction -filepath ????? -pythonfunction
first had %1 questionmarks are, want dynamic file path
save test.bat, , run folder in open cmd prompt access file lala*
in dir corresponding desired month. let me know if errors.
@echo off setlocal enabledelayedexpansion set "dir=c:\lala-months" set "cur_month=august" /r "%dir%" %%g in (.) (set "mon=%%g" if not '!mon:%cur_month%=!'=='!mon!' echo %%g ) exit /b
Comments
Post a Comment