|
Answer» I am setting up a batch file that (hopefully) will echo the NAME of ANOTHER file in the same directory. In the directory, there will be one (and ONLY one) file of the type .tlc
This is a "custom" filetype, it's not a STANDARD .tlc (whatever that might be, not REALLY sure). What I want the .bat file to do is echo the name of the .tlc file. There will be other files in this directory.
In other words, my folder would look like
File01.fle File02.fle File03.fle File04.fle Displaythisfile.tlc
I want the bat file to do this:
[code and whatnot] echo %file%
and that would return Displaythisfile.tlc
thanks, -darrylCode: [Select]for /f "delims==" %%F in ('dir /b *.tlc') do set file=%%F echo %file% perfect.
dias i love youQuote from: dworley on MARCH 06, 2009, 11:26:27 AM perfect.
dias i love you
You can have my baby
|