windows_dos
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| windows_dos [2018/12/08 12:49] – created 0.0.0.0 | windows_dos [2019/11/29 19:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Windows/DOS ====== | + | ==== Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer |
| + | * [[https:// | ||
| + | Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, | ||
| + | * Download Office 2019 Volume License Serializer from [[https:// | ||
| + | * Run Serialiser tool after installing - but before - opening Office. | ||
| - | =====Kill processes by image name===== | + | ==== Kill processes by image name ==== |
| Have a runaway process with hundreds or thousands of programs (eg: cmd.exe) all running and need to kill them all in one go? | Have a runaway process with hundreds or thousands of programs (eg: cmd.exe) all running and need to kill them all in one go? | ||
| - | < | + | < |
| + | taskkill /F /IM cmd.exe | ||
| + | taskkill /F /IM bash.exe | ||
| + | </ | ||
| - | =====How to force logoff a session on another server===== | + | ==== How to force logoff a session on another server ==== |
| **Method 1 with the TSM GUI** | **Method 1 with the TSM GUI** | ||
| - | * Launch Terminal Services Manager (in Administrative Tools) | + | * Launch Terminal Services Manager (in Administrative Tools) |
| - | * In the menu: Actions " | + | * In the menu: Actions " |
| - | * Enter name of server you want to get on to | + | * Enter name of server you want to get on to |
| - | * Right-click and logoff one of the displayed sessions | + | * Right-click and logoff one of the displayed sessions |
| **Method 2 with Command prompt** | **Method 2 with Command prompt** | ||
| - | * Launch Windows (DOS) box | + | * Launch Windows (DOS) box |
| - | * Enter "query session / | + | * Enter "query session / |
| - | * Enter " | + | * Enter " |
| - | =====Return the value of a function into a variable in DOS batch .bat file===== | + | ==== Return the value of a function into a variable in DOS batch .bat file ==== |
| What an awful language! | What an awful language! | ||
| - | < | + | < |
| + | set NLS_LANG ====== | ||
| + | @echo NLS_LANG has been cleared | ||
| + | @FOR /F " | ||
| + | @echo NLS_LANG has been set to %NLS_LANG% | ||
| + | </ | ||
| - | =====Create a Scheduled Task from the command line===== | + | ==== Create a Scheduled Task from the command line ==== |
| - | This one is particularly interesting as I need to start a shell Cygwin shell script on a regular basis<br /> | + | This one is particularly interesting as I need to start a shell Cygwin shell script on a regular basis\\ |
| - | As crontab is not implemented by default, I use the Windows Scheduler to start the jobs.<br /> | + | As crontab is not implemented by default, I use the Windows Scheduler to start the jobs.\\ |
| - | This one creates a task called dbamon_dblist tat runs a shell every 10 minutes starting at 9 am and going on for 24 hours (so, forever).<br /> | + | This one creates a task called dbamon_dblist tat runs a shell every 10 minutes starting at 9 am and going on for 24 hours (so, forever).\\ |
| It is run a user different from the logged on user. The echo at the start is to answer N to the question "Task exists, do you want to replace it". For some reason that doesnt work too well :( | It is run a user different from the logged on user. The echo at the start is to answer N to the question "Task exists, do you want to replace it". For some reason that doesnt work too well :( | ||
| - | < | + | < |
| - | =====Scheduled Task seems to do nothing. Runs but stops immediately===== | + | echo N|SCHTASKS /Create /SC MINUTE /MO 10 /TN dbamon_dblist /TR " |
| - | * Check task scheduler log | + | </ |
| + | ==== Scheduled Task seems to do nothing. Runs but stops immediately ==== | ||
| + | * Check task scheduler log | ||
| Advanced: | Advanced: | ||
| - | < | + | < |
| - | * Check error code given | + | " |
| - | < | + | \tFinished 1/9/2015 1:10:00 PM |
| - | Not very helpful on the part of Microsoft but the 80 error turned out to be a whole load of sqlplus.exe processes (100' | + | \tResult: The task completed with an exit code of (80). |
| + | " | ||
| + | \tFinished 1/9/2015 1:10:23 PM | ||
| + | \tResult: The task completed with an exit code of (1). | ||
| + | </ | ||
| + | * Check error code given | ||
| + | < | ||
| + | C: | ||
| + | |||
| + | The file exists. | ||
| + | |||
| + | |||
| + | C: | ||
| + | |||
| + | Incorrect function. | ||
| + | |||
| + | </ | ||
| + | Not very helpful on the part of Microsoft but the 80 error turned out to be a whole load of sqlplus.exe processes (100' | ||
| Killed them and jobs started running again. | Killed them and jobs started running again. | ||
| + | |||
windows_dos.1544273361.txt.gz · Last modified: 2018/12/08 12:49 by 0.0.0.0
