Windows Basic Commands
dir: Lists files and directories in the current directory.cd: Changes the current directory.md: Creates a new directory.rd: Removes (deletes) a directory.copy: Copy files.move: Move files.del: Delete files.ren: Rename files.type: Displays the content of a text file.tree: Generates directory structure.edit: Opens a simple text editor. (or, usenotepad)chkdsk: Checks a disk for errors.systeminfo: Shows Your PC’s Detailspowercfg /batteryreport: Battery report generation.tree: Displays a graphical representation of the directory structure.ping: Sends ICMP Echo Request packets to test network connectivity.ipconfig: Displays IP configuration information.date: Displays or sets the system date.time: Displays or sets the system time.set: Displays, sets, or removes environment variables.tasklist: Displays a list of currently running tasks.taskkill: Terminates one or more running tasks.fc: Compares two files or sets of files.help: Displays help information for commands.exit: Exits the Command Prompt.
Running Programs in Windows
Running C/C++ codes (windows)
g++ input.cpp
.\a.exe
Running assembly codes (windows)
Download and install nasm compiler,
winget install nasmWrite a simple .asm code,
; hello.asm (Windows x64, NASM)
default rel
extern printf
global main
section .data
msg db "Hello, World!", 10, 0
section .text
main:
sub rsp, 40 ; shadow space + stack alignment
lea rcx, [msg] ; first argument (Windows x64)
call printf
add rsp, 40
xor eax, eax
retCompile and run the code,
nasm -f win64 hello.asm -o hello.obj
gcc hello.obj -o hello.exe
.\hello.exeRunning python/… codes
Directly run the relevant command,
python source.txt
Running Programs in Android
Search for termux fdroid and install it,
Install the required packages, like,
pkg install clangUse a CLI based text editor for editing files,
nano input.cppFinally compile and run,
g++ input.cpp
.\a.out