Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

WinXP命令列配置防火牆語法錯誤:路徑含空格須加引號

編輯:XP 系統應用技巧

netsh firewall add allowedprogram命令報語法錯誤,主因Program Files路徑含空格未加引號。

錯誤示範

netsh firewall add allowedprogram C:\Program Files\GoldenSoft\NetRG\WinNT\Client\NetRGClt.exe NetRGClt ENABLE

正確寫法

netsh firewall add allowedprogram "C:\Program Files\GoldenSoft\NetRG\WinNT\Client\NetRGClt.exe" NetRGClt ENABLE

命令列語法錯誤

關鍵:路徑含空格時,雙引號包裹完整路徑,大小寫、空格皆需精確,否則即報錯。

Copyright © Windows教程網 All Rights Reserved