Batch Files and Shortcuts

xampp.bat

w:
cd \xampp
xampp-control
exit

Backup settings.bat

copy “C:\Windows\System32\drivers\etc\hosts” “W:\Admin\Settings Backup\hosts (backup).txt” /y
copy “W:\xampp\apache\conf\httpd.conf” “W:\Admin\Settings Backup\httpd (backup).conf” /y
copy “W:\xampp\apache\conf\extra\httpd-xampp.conf” “W:\Admin\Settings Backup\httpd-xampp (backup).conf” /y
copy “W:\xampp\apache\conf\extra\httpd-vhosts.conf” “W:\Admin\Settings Backup\httpd-vhosts (backup).conf” /y

Edit hosts.bat

notepad “C:\Windows\System32\drivers\etc\hosts”

Note:

Run “Edit hosts.bat” as administrator

Edit httpd-vhosts.conf

W:\xampp\apache\conf\extra\httpd-vhosts.conf

Edit httpd-xampp.conf

W:\xampp\apache\conf\extra\httpd-xampp.conf

Shortcut to crt

W:\xampp\apache\crt

Shortcut to etc

C:\Windows\System32\drivers\etc