Setting a system environment variable from a Windows batch file?

The XP Support Tools (which can be installed from your XP CD) come with a program called setx.exe: C:\Program Files\Support Tools>setx /? SETX: This program is used to set values in the environment of the machine or currently logged on user using one of three modes. 1) Command Line Mode: setx variable value [-m] Optional … Read more

Batch file: Find if substring is in string (not in a file)

Yes, you can use substitutions and check against the original string: if not x%str1:bcd=%==x%str1% echo It contains bcd The %str1:bcd=% bit will replace a bcd in str1 with an empty string, making it different from the original. If the original didn’t contain a bcd string in it, the modified version will be identical. Testing with … Read more

What does cmd /C mean? [closed]

The part you should be interested in is the /? part, which should solve most other questions you have with the tool. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\>cmd /? Starts a new instance of the Windows XP command interpreter CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)