dos code nerds (beginner alowed all pl)

  • LogikMacherDE
    6th Sep 2023 Member 0 Permalink
    welp im bored and if you want submit you self made batch files i have one example
    but first before you start down load notepad++ its notepad for programming and Windows/MS-DOS

    step 1 right click on ya desktop
    step 2 go to the new and select the creat file thingy
    step 3 there where the .txt is change it to .bat for batch that what cmd uses
    step 4 enter name and accept that error its just are you sure thing
    step 5 if you have NP++ click on the file and click on edit with notepad++
    step 5 enter this example:

    ::complex ver
    @echo off
    echo Hello, World!
    pause >nul

    :: simple one
    echo hello, world!
    pause

    if you need help ask me usefull is the goto command

    make verible
    :something
    -code-
    goto something

    thats an loop btw
    if you write command wronge CMD closes dosent tell like most common mistake is
    goto somethng
    something:
    echp hello
  • LBPHacker
    6th Sep 2023 Developer 0 Permalink
    Moved to General.
  • LogikMacherDE
    7th Sep 2023 Member 0 Permalink
    oh ye my bad i sould have done it in the first pleace also here more code

    Randomizer: set /a XXXXX=%random% %% X + -X/+X
    Add set /a x=x+x
    subtract set /a x=x-x
    divide set /a x=x/x
    multiply set /a x=x*x
    execute if if %xxxx% == x xxxxxxxx
    goto xxxx

    save value you typed set /p xxxxx=
    pause pause or pause >nul
    turn execute line off aka what was typed off : @echo off on : @echo on
    color color xx first x background 2nd x text
    change window name title XXXXX
    and if you wanna see you saved value lets say you value is hello then use echo %xxxx%
    to see it :D
    and minor but usefull is clear screen aka CLS whatever have fun with ya batch file dont hack or make virus with it
  • IEATDIRT
    7th Sep 2023 Member 0 Permalink

    W-what is this?

    Aren't the forums meant for things that are at least tangentially related to tpt?

    Edited 2 times by IEATDIRT. Last: 7th Sep 2023
  • Liver_K
    8th Sep 2023 Member 0 Permalink

    Edited 2 times by Liver_K. Last: 8th Sep 2023
  • Jerehmia
    8th Sep 2023 Member 0 Permalink

    Have a look at Powershell. Powershell is what Microsoft developed to replace DOS shell scripting, it's way more powerful and sometimes actually fun to program in. What is PowerShell?

  • LogikMacherDE
    9th Sep 2023 Member 0 Permalink
    yeah i wanned to switch to PS at somepoint i thoght it simple nope it destroyed all my programms not even echo worked but ill mess with it and @IEATDIRT it does relate dos code and tpt code both are languages and are binary in realaity
  • LogikMacherDE
    11th Nov 2023 Member 0 Permalink

    why cant you send files with forum threats i dont want compicated stuff like links to discord juse símple Download Seedgenerator.bat carefull it may be virus

     

    there ill be TPT MSDOS editions at somepoint but im not that skilled im more good for silly small ones

    Edited 3 times by LogikMacherDE. Last: 11th Nov 2023
  • electroBOOM_
    15th Dec 2023 Member 0 Permalink

    Im sorry i only know how to make shell scripts for bash (linux only)

     

    oh and

     

    @LogikMacherDE i know quite a bit of C++ and C programing so i could make tpt  ms-dos version. But i will not

    Edited once by electroBOOM_. Last: 15th Dec 2023