I was fiddling around with batch and i came across this little problem that i have yet to solve.
Now, the blow code is NOT working, but it shows what i want to do. I'm looking for a subfolder named "scripts" in an unknown series of folders. Just like the Garry's Mod add-on thing.
[code]
FOR /D /r %%A IN (Addons\*\scripts\) DO (
ECHO %%A
)
[/code]
Clearly the above does NOT work, so my question is: what would work?
[QUOTE=mastersrp;19128289]what would work?[/QUOTE]
a real programming language
[highlight](User was banned for this post ("Trolling" - Jaanus))[/highlight]
If that isn't working then it's time to get a 486.
[QUOTE=Eleventeen;19143468]If that isn't working then it's time to get a 486.[/QUOTE]
This isn't helping. And what is this 486 bullshit? I'm using a x64 Core 2 Duo processor. Besides the performance and speed wouldn't have much to do with the fact that the script i wrote does not work.
[QUOTE=turby;19142766]a real programming language
[highlight](User was banned for this post ("Trolling" - Jaanus))[/highlight][/QUOTE]
Then where should this be posted? We don't have any sections for batch, and the programming forum is the closest it'll get.
[url]http://www.robvanderwoude.com/for.php[/url]
All you people hating on batch scripts are retarded. If you're doing simple file search and manipulation then batch is definitely the fastest and easiest way to go about it. There's no point in writing and compiling a program when all you're doing is automating windows explorer commands.
Just at a glance, aren't you using two different switches for the loop with /D and /r?
Would using this work?
[code]FOR /R [[drive:]path] %%parameter IN (set) DO command[/code]
[QUOTE=andersonmat;19150432][url]http://www.robvanderwoude.com/for.php[/url][/QUOTE]
I've already checked out that site, and i still don't see how that's going to fix my problem. Did i overlook anything?
Sorry, you need to Log In to post a reply to this thread.