![]() |
|
Creating custom command prompt commands (Windows) - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: Creating custom command prompt commands (Windows) (/Thread-Creating-custom-command-prompt-commands-Windows) |
Creating custom command prompt commands (Windows) - Inori - 04-03-2015 The basics: It sounds complicated but it's pretty much the easiest thing in the book. If you know how to code batch (which, if you're a windows user, you should), start by making a simple program and try to avoid excessive I/O as well syntax-dependent code. After you've made your program, all you need to do is put it in your system32 folder (C:\Windows\System32). When that's done, start command prompt (Admin) and enter the name of your program without .bat on the end. Some examples: I have a few examples if you need any ideas/clarification on the subject Netflix: You read that right. All it does it gives you a little message, opens another cmd window and redirects you to netflix. netflix.bat Code: @echo off
echo Netflix: redirecting
start http://www.netflix.comInsulter It just swears at you. insult.bat Code: @echo off
echo fuck youRE: Creating custom command prompt commands (Windows) - ring-1 - 04-04-2015 I'm sorry, but why would anyone ever need to know this? I understand you're trying to share shit, but there's no practicality to this... I just, don't quite understand the point in this. RE: Creating custom command prompt commands (Windows) - Inori - 04-04-2015 (04-04-2015, 01:25 AM)ring-1 Wrote: I'm sorry, but why would anyone ever need to know this? It's a basic concept that can be used for greater things. There's programs out there; gifsicle, aircrack-ng, rainbowcrack, that all run off the same principle. The ones I shared are stupid little 3 second projects but the things you can do with it are essentially limitless. RE: Creating custom command prompt commands (Windows) - whatever - 04-04-2015 (04-03-2015, 10:36 PM)Nightc||ed Wrote: All I'd like to say is that there's a difference between being redirected and being directed. RE: Creating custom command prompt commands (Windows) - Inori - 04-04-2015 (04-04-2015, 03:17 AM)whatever Wrote: All I'd like to say is that there's a difference between being redirected and being directed. Fair point. But how many people would use a script I threw together in 10 seconds and trust what it says/does? RE: Creating custom command prompt commands (Windows) - Misha- - 04-04-2015 (04-04-2015, 01:51 AM)Nightc||ed Wrote: It's a basic concept that can be used for greater things. I don't know, I doubt they use batch files to run, especially on Linux. For anyone that doesn't know, this works because on Windows, system32 is added by default in your PATH. You can add any folder you want to your PATH, like I did with my Linux files compiled for Windows. Spoiler:![]() And then you can access them from anywhere in CMD. Basically the same thing in Linux. RE: Creating custom command prompt commands (Windows) - Inori - 04-04-2015 (04-04-2015, 04:28 PM)Misha- Wrote: I don't know, I doubt they use batch files to run, especially on Linux. Aircrack run off of batch and exe; RCrack runs of batch; plus one exe, and gifsicle runs exclusively off batch. It's a good point, though. CMD.exe works off of whatever .exe or .bat files are contained in %cd% (your current directory). RE: Creating custom command prompt commands (Windows) - Alan Turing - 04-04-2015 u-s-e-l-e-s-s. /thread RE: Creating custom command prompt commands (Windows) - Inori - 04-05-2015 ok, fuck it. All this thread seems to be generating is hate, not ideas. Closing it. |