Start new cmd.exe and NOT inherit environment?

Anders’ recipe has detailed control over a new environment, and I’m leaving that as the accepted answer because of that depth control. However one phrase in that answer led to me the method I’ll actually be using for the particular problem which prompted this enquiry. An “environment that is equal to the initial explorer.exe environment”. … Read more

The filename, directory name, or volume label syntax is incorrect inside batch

set myPATH=”C:\Users\DEB\Downloads\10.1.1.0.4″ cd %myPATH% The single quotes do not indicate a string, they make it starts: ‘C:\ instead of C:\ so %name% is the usual syntax for expanding a variable, the !name! syntax needs to be enabled using the command setlocal ENABLEDELAYEDEXPANSION first, or by running the command prompt with CMD /V:ON. Don’t use PATH … Read more

CMD Command to delete files and put them into Recycle Bin?

There is a “recycle.exe” command part of the a collection called cmdutils “Recycle.exe is a safe replacement for the DEL command, that sends files to the recycle bin instead of deleting them. Recycle is also more flexible than DEL; you can specify multiple files at once (or use wildcards)” Available at http://www.maddogsw.com/cmdutils (Tool last updated … Read more

What are the ERRORLEVEL values set by internal cmd.exe commands?

In this answer the ERRORLEVEL values returned by all internal cmd.exe commands are described; they are grouped by the way the value is changed and presented as quick reference tables. I reviewed other similar tables in order to assemble this one, but filled the missing values via tests performed in a Windows 8.1 computer. I … Read more

Output of tree in command prompt

Tree accepts only a few command line parameters: c:\>Tree /? Graphically displays the folder structure of a drive or path. TREE [drive:][path] [/F] [/A] /F Display the names of the files in each folder. /A Use ASCII instead of extended characters. None of the indicated parameters are a file mask or filter. You can use … Read more

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