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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -