I'm trying to create a NETSH batch file that sets my TCP/IP settings to DHCP.
The line I want to use is:
netsh interface ipv4 set address name="My Custom Named Network" dhcp
If I run the global cmd prompt and paste this line, it works as intended. However, if I create a batch file with the same line, I get "The filename, directory name, or volume label syntax is incorrect".
Anyone, please? Any clue? This is bugging me plenty.
The line I want to use is:
netsh interface ipv4 set address name="My Custom Named Network" dhcp
If I run the global cmd prompt and paste this line, it works as intended. However, if I create a batch file with the same line, I get "The filename, directory name, or volume label syntax is incorrect".
Anyone, please? Any clue? This is bugging me plenty.
My Computer
System One
-
- OS
- Windows 8
- System Manufacturer/Model
- -
- CPU
- i5 3570K
- Motherboard
- Asus P8Z77-M
- Memory
- Corsair 16GB
- Graphics Card(s)
- EVGA GTX670 FTW