How can I get batch files to run through the new Windows Terminal? [closed]

You can have this behaviour on double click by changing HKEY_CLASSES_ROOT\batfile\shell\open\command default value from: “%1” %* to: “C:\Users\<user>\AppData\Local\Microsoft\WindowsApps\wt.exe” -p “Command Prompt” “%1″ %* or by using ftype command: ftype batfile=”C:\Users\<user>\AppData\Local\Microsoft\WindowsApps\wt.exe” -p “Command Prompt” “%1” %* You have to change <user> with the current user name directory and of course, this wt.exe path (C:\Users\<user>\AppData\Local\Microsoft\WindowsApps\) is if … Read more

Pass parameter to MySQL script command line

Found an answer on the net here. Basically, suppose that we want to run this query: Select c_id, c_first_name,c_last_name, c_address,last_modified_date from customer where last_modified_date >=@start_date and last_modified_date <= @end_date; We can pass ‘start_date’ and ‘end_date’ like this: /usr/bin/mysql –uuser_id -ppassword –h mysql-host -A \ -e “set @start_date=${start_date}; set @end_date=${end_date};\ source ${sql_script};” > ${data_file}

‘csc’ is not recognized as an internal or external command, operable program or batch file [duplicate]

Locate the path of csc.exe and add it your PATH environment variable. In my case, the path for 64-bit C# compiler is C:\Windows\Microsoft.NET\Framework64\v4.0.30319. Similarly, you can look for 32-bit C# compiler in C:\Windows\Microsoft.NET\Framework under different .NET framework version directories There will be csc.exe for all versions like v2.0.XXXXX and v3.5. Select the one with the … Read more

CMD what does /im (taskkill)?

It tells taskkill that the next parameter something.exe is an image name, a.k.a executable name C:\>taskkill /? TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F] Description: This tool is used to terminate tasks by process id (PID) or image name. Parameter List: /S system Specifies … Read more

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