Other tricks

Kill process/es in windows using command line

  • killing processes using Task Manger is easy and commonly know, but sometimes, especially if you need to kill more processes, is better to use command line
  • if you use Visual Studio 2008, killing processes by command line is very usefull ;-)
  • in linux you can use kill, in windows is taskkill
    taskkill /PID 15223 /F 
    taskkill /IM IntelliTrace.exe /F
    taskkill /FI "WINDOWTITLE eq Window*" /F

Loop csv file in cmd

  • iterates over csv file and runs script with arguments from this file
@echo off
set startTime=%time% 
for /f "tokens=1,2 delims=," %%i in (Data.csv) do myscript.vbs %%i %%j
echo Start Time: %startTime% 
echo Finish Time: %time%
programming/other.txt · Last modified: 2018-06-21 19:48 (external edit)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0