batch file - .bat Wildcard for a Folder -


how use wildcards in folder?

7z x -os:\technology\feftp\* s:\technology\feftp\*.zip  ren s:\technology\feftp\export_job9_04-08-2014_16-24(wildcardthis) testfolderrename   ren s:\technology\feftp\testfolderrename\*.csv test1.csv  move s:\technology\feftp\testfolderrename\*.csv s:\technology\feftp\test 

what best way go this? need wildcard replace export_job9_04-08-2014_16-24. thing in folder not need specific. tried *e, e?, did not work. proper method use?

for /d %%a in ("s:\technology\feftp\export*") ren "%%~fa" testfolderrename 

obviously, work if (as stated) have 1 export* folder (you can not rename 2 folders same name), , if testfolderrename not exist (name collision).


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -