Search found 2 matches

by countryqt30
21 Jan 2012 13:27
Forum: DOS Batch Forum
Topic: Loop through similar files and execute commands for that
Replies: 3
Views: 3544

Re: Loop through similar files and execute commands for that

@aGerman
Thank you, it works like a charm!

Can you explain what "%%~ni.vsh" really stands for? I know it means the <old name without extension> + ".vsh" but this CMD syntax is more than strange..
It's like hell for every scripter i think. :D
by countryqt30
21 Jan 2012 01:53
Forum: DOS Batch Forum
Topic: Loop through similar files and execute commands for that
Replies: 3
Views: 3544

Loop through similar files and execute commands for that

Hey guys, I'd like to achieve the following: Find all files ending with ".hlsl", "fxc" them with an input of ".psh" and ".vsh". Okay, seems a bit confusing, so here is an example: fxc /T vs_5_0 /E VxShader /Fo Terrain.vsh Terrain.hlsl fxc /T ps_5_0 /E PxShader...