Search code examples
foreachdos

Find Extensionless File in DOS For In Loop


I like to find all .js file (for example sss.js) and file without file type (the extension, the suffix, the file type after .dot)

I tried for ..... In (*,*.js) .... But not working, it will go through all files it found.

Please advice how to select the file that no filetype


Solution

  • You almost had it correct. You just need a dot after the first asterisk.

    for ... in (*. *.js) ...