[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: gentoo.png (67 KB, 960x394)
67 KB PNG
Share your batch scripts.
I'll start:
mkdir hexdump
for /f "delims=" %%f in ('dir /b /a-d') do hexdump -C "%%f" > "hexdump\%%f.hex"
>>
That is not a bash script, 0/10 bake.
>>
i needed more functionality instead of arcane incantations...

import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.util.ArrayList;

public class Main {
public static void main(String[] args) throws IOException {
File directory = new File("D:\\steamLibrary\\steamapps\\common\\Skyrim Special Edition\\Data\\");
FilenameFilter filter = (dir, name) -> name.toLowerCase().endsWith("." + "bsa");
File[] files = directory.listFiles(filter);
ArrayList<String> l = new ArrayList<>();
l.add("\"D:\\steamLibrary\\steamapps\\common\\Skyrim Special Edition\\__TOOLS\\BSA Browser\\BSA Browser.exe\"");
for (File f : files) {
String file = f.getCanonicalPath();
//sb.append(file);
l.add(file);
}
Process p = Runtime.getRuntime().exec(l.toArray(new String[0]));
}
}

then
""C:\Windows\java25.bat" "D:\steamLibrary\steamapps\common\Skyrim Special Edition\__TOOLS\BSA Browser\BSAstrapper.java""
in a shortcut
>>
>>109573245
>bash
Wut?
>>
>>109573245
He said batch not bash you moronic freetard.
>>
this language is even more cancerous than bash
>>
>>109574643
Bash and batch are a whole lot fun, and very forgiving for noobs, much like your mother.
>>
>>109574643
Go play with your window, nigga.
>>
>>109574643
very much so.
have you seen how to assign a newline to a variable in batch?
or how to read a specific byte from a binary file?
it's hilariously bad.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.