Compiling/Executing a C# Source File in Command Prompt

CSC.exe is the CSharp compiler included in the .NET Framework and can be used to compile from the command prompt. The output can be an executable “.exe”, if you use “/target:exe”, or a DLL; If you use /target:library, CSC.exe is found in the .NET Framework directory, e.g. for .NET 3.5, c:\windows\Microsoft.NET\Framework\v3.5\. To run, first, open … Read more

Why is my command prompt freezing on Windows 10?

The issue ended up being a new feature of the windows 10 console. Under the default config, whenever you click on a command window in windows 10, it immediately halts the application process when it attempts to write to the console. When this happens, the command window has gone into “selection” mode. You can tell … Read more

How to add a set path only for that batch file executing?

Just like any other environment variable, with SET: SET PATH=%PATH%;c:\whatever\else If you want to have a little safety check built in first, check to see if the new path exists first: IF EXIST c:\whatever\else SET PATH=%PATH%;c:\whatever\else If you want that to be local to that batch file, use setlocal: setlocal set PATH=… set OTHERTHING=… @REM … Read more

Using the “start” command with parameters passed to the started program

START has a peculiarity involving double quotes around the first parameter. If the first parameter has double quotes it uses that as the optional TITLE for the new window. I believe what you want is: start “” “c:\program files\Microsoft Virtual PC\Virtual PC.exe” -pc MY-PC -launch In other words, give it an empty title before the … Read more

javac is not recognized as an internal or external command, operable program or batch file [closed]

TL;DR For experienced readers: Find the Java path; it looks like this: C:\Program Files\Java\jdkxxxx\bin\ Start-menu search for “environment variable” to open the options dialog. Examine PATH. Remove old Java paths. Add the new Java path to PATH. Edit JAVA_HOME. Close and re-open console/IDE. Welcome! You have encountered one of the most notorious technical issues facing … Read more

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