logo

Basics of Windows CMD Batch Scripting

O

Ohidur Rahman Bappy

MAR 22, 2025

Creating File Associations

You can create file associations in Windows CMD by using the following commands:

Assoc .php=phpfile
Ftype phpfile="C:\Program Files (x86)\Notepad++\notepad++.exe" %1

This associates .php files with Notepad++ for editing.

Tips

When renaming a folder, you can press and hold Alt while typing 255 on the numeric keypad, then press Enter. Note that this only works with the numeric keypad, not the numbers at the top of your keyboard.