Posts

Showing posts from June, 2020

Change IP address using a batch script in Windows 10

Here's how to quickly change your IP address with a batch script in Windows. First, check the output of the "ipconfig" command. The command will print names of your network interfaces and their settings. Then, if your ethernet adapter is called "Ethernet", you can set it to DHCP with the following batch script: netsh interface ipv4 set address name="Ethernet" dhcp netsh interface ipv4 set dns name="Ethernet" dhcp pause If you create a .bat file from that and run it as administrator , your network settings will change to automatic (DHCP). Other useful netsh examples: Set your IP to 192.168.1.120 and subnet mask to 255.255.255.0 netsh interface ipv4 set address name="Ethernet" static 192.168.1.120 255.255.255.0 Set gateway address to be 192.168.1.1 netsh interface ipv4 set address name="Ethernet" gateway=192.168.1.1 Remove DNS server settings netsh interface ipv4 delete dnsserver name="Ethernet" all

How to remove extra items from the 'new' context menu in Windows 10

If you haven't cleaned it up yourself, chances are there are several useless and annoying items in the right-click "New" context menu. People rarely create Rich Text Documents for example. And I never create new LibreOffice document files with the right-click menu. Instead, I open LibreOffice and then do what I need. So here's how to get rid of some of these extra options in your Windows 10 right-click context menu. Remove New 'Avisynth Script' option The file extension is avs. With regedit, go to: Computer\HKEY_CLASSES_ROOT\.avs Delete the ShellNew folder. Remove New 'Rich Text Document' The file extension is rtf. Remove folder Computer\HKEY_CLASSES_ROOT\.rtf\ShellNew Remove New 'Bitmap image' The file extension is bmp. Remove folder Computer\HKEY_CLASSES_ROOT\.bmp\ShellNew Remove New 'OpenDocument Text' The file extension is odt. Remove folder: Computer\HKEY_CLASSES_ROOT\.odt\LibreOffice.WriterDocument.1\ShellNew Remove New 'OpenD...