there's a certain level of sadness you have to reach to learn how to do a for-loop in batch scripting
bash? sure, that's normal. but if you want to iterate over some files on a windows command line? you're a sicko
there's a certain level of sadness you have to reach to learn how to do a for-loop in batch scripting
bash? sure, that's normal. but if you want to iterate over some files on a windows command line? you're a sicko
I am, sadly, a sicko
@Ongion powershell is an option, but I'd rather learn more batch than powershell. more universally usable in the circles I live in
@foone whenever I get to that point I think about just learning powershell instead.
I assume that's not an option for the environment you're operating in, though.
@funkylab yeah I'm a recursive sicko
@foone so you do that recursively?
@irina yeah that's my usual option. I can write a 5 line python program that does what a 2 line batch program can do, but at least I'll understand it
@foone i've gotten to this point a few times and just decided "hm. no, the user can install python for this"
@mcc AHHHHHHHHHHHHHHH MSBUILD
one of my previous jobs involved automating MSBuild and it was an endless nightmare
@foone the point where I think cursed thoughts like "I should switch over to MSBuild, where things are easier"
@foone @mcc did you know that nintendo uses msbuild for building switch games
@mcc @foone When I worked at IBM, I briefly had a local instance of IBM WebSphere on my work laptop. At that time, the entire build system comprised hundreds of batch scripts calling each other, and documentation was non-existent. It took me two full days of fiddling to get it built, between the raw build time and having to modify the process on the fly because our environment was not exactly the same as that of the team that originally produced it.
@foone i have become comfortable with it , like a horrible cursed glave. i have created works of startling complexity in it. msbuild is the thing that means I don't have to learn how to learn batch
@eltonfc yeah! There's a "for" statement which iterates over a list and does some variable replacement stuff per iteration.
for /l %%x in (1, 1, 100) do echo %%x
@foone is it even possible without a goto?
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.