Skip to main content

Posts

How to stop a frozen application in windows using command line interface

Lets say you have a frozen application affecting the performance of your computer and other applications you may be running.There is a way to stop it and any other associated applications that may also be frozen.       1.Start cmd        2.Type taskkill /f /fi "status eq not responding"       3.Press the 'enter' key  

How to copy files from your desktop to a USB using command line interface

Let's say you have a whole lot of mp3 files from your desktop and want to copy them to your USB without selecting them from a list of file formats or by any chance wanting to be accurate.You can only choose to select only music files from many files. Lets assume your usb is drive H: this is how you would do it,type copy .\desktop\*.mp3  h:\ 

Move a collection of files to a collection of folders with the same names

Let's say you have 20  people you have to create word documents for,each document with a different file name and store them in thier own folder  you have created the same name as the file.check this cmd file. It read names from a file called read.txt and for each name read,it create a forlder,create a word document with that name and move this document to its folder. No matter how many names,can take up to 1000 names and create files and folders in less than 30 seconds.  1.open an mpty notepad and copy the code from the picture bellow and type it,when done save with a .cmd extension e.g hello.cmd  2.copy or type names into an empty notepad file and save as read.txt  and place it in the same folder with a .cmd file. Start the .cmd files and see the results,place both files in an empty folder so that the .cmd file does not interfer with the window u are working on e.g documents/desktop 

How to recover ur USB /Flash drive from virus infection

Ever had a bad virus that affected the drive sectors of ur USB flash drive to the point that it disconnect itself, report to be unrecognized yet connected or any other suspicious behavior, well i have had that problem and fixed it.this is how you would fix it.        1.Start cmd.exe, if you are not sure how,read one of the previous tutorials that would tell you                more on the options of starting this file.        2.Assuming your flash drive is drive E: type chldsk /f   E:  then press 'enter'. This command will        check will check your drive errors and recover all the bad sectors.     

How to get your computer's information like the IP address,RAM,HDD MEMORY e.t.c

Ever been called by a technician and require your IP address or your system version 32bit,64bit etc and wondered how to get this type of information about your computer,well this is how you would get it.     1.Start cmd.exe and type systeminfo the press 'enter' and you will get all the info bout your     hardware,software etc

How to automatically organize your desktop or a folder

Lets say you have a list of files in your desktop or your usb drive and you want to organize each to a different folder e.g all the mp3 files to its folder,all the text files to it folder and more        1.Copy the code below to and paste it to an empty notepad and save it with a .cmd extension e.g          example.cmd / config.cmd     ---------------------CODE----------------  echo off  cls set l=___________________________________ echo Config set mp3=mp3 set txt=txt set pdf=pdf set jpg=jpg set png=png set files=files echo %l% echo Creating folder %mp3% echo %l% if  exist %mp3% ( echo The folder %mp3% was found,moving files...  move *.mp3 %mp3%  ) else (  echo  The folder %mp3% does not exist,please wait... md %mp3%  echo %mp3% created,moving files... move *.mp3 %mp3%    ) echo %l% echo Creating folder %txt%...

How to create 50 folders at once using cmd.exe

Lets say you want to create 50 folders at once without creating each and typing its name, you just want to create all of them in a go, this is how you would do it.      1.Start cmd.exe, if you are not sure how to, check one of the tutorials and it will show you how.      2.After you have started cmd, create a folder to contain all your folders type md group       3.No create your 50 folders inside this folder called 'group', type for /l %i in (1,1,50) do md group\%i