Microsoft
Software
Hardware
Network
Question : Batch file
I am writing a batch file with reg add. I have numerous lines. Most of the reg adds work properly except those with spaces in them. How do I get around this problem? This is in Windows 2003 I am running into the problem. Here is an example;
rem reg add HKEY_LOCAL_MACHINE\Softwar
e\Policies
\Microsoft
\Windows NT\Terminal Services /v fAllowToGetHelp /t REG_DWORD /d 0
Answer : Batch file
Simply add quotes:
reg add "HKEY_LOCAL_MACHINE\Softwa
re\Policie
s\Microsof
t\Windows NT\Terminal Services" /v fAllowToGetHelp /t REG_DWORD /d 0
Random Solutions
Access 2007 - Query Question
Reading bits in C++
Logging in as domain user outside of domain
Enteprise Application Documentation Application
Silverlight ContentPresenter in Button Template
Group and ungroup a password-protected sheet?
SQL 2k Database restore using only MDF flies
Best way to setup a shared calendar and contacts on Exchange Server 2003
Windows 7 Enterprise vs Ultimate?
Styling a Dropdownlist using CSS