Contact Us

Windows-commandline.com, as the name says, is all about command line tips and HowTos for Windows operating Systems. We cover all Windows releases – XP, Vista, Windows7, Server 2003 and Server 2008.

Guest Posts

If you have any suggestions or command line tips to share with others, you can email us at admin@windows-commandline.com.

Advertisers

If you want to advertise on windows-commandline.com, please contact us at admin@windows-commandline.com. Please mention the subject as ‘Advertise in Windows-commandline.com’.

{ 7 comments… read them below or add one }

Tim Hamilton November 10, 2011 at 4:52 pm
admin November 12, 2011 at 5:59 am

answered your question on the post. Thank you for visiting the blog.

Abhipsa March 13, 2012 at 9:56 am

Can you please give a solution for below requirement-
suppose we have a file with col1,col2,col3,col4.We have to copy only col2,col4 data in a another file.How do we achieve this through windows command?

Reply

admin March 13, 2012 at 5:05 pm

You can try the following command. I am presuming that the columns are separated by whitespace.

for /F "tokens=2,4" %%a in ('type filename') do echo %%a %%b 

Run this from a batch file. filename should be replaced with your actual file name. You can redirect the output from the batch file to a file.
If you want to run this from command prompt, the command would be:

for /F "tokens=2,4" %a in ('type filename') do echo %a %b

wiki March 21, 2012 at 11:49 am

Hello and tnx for your useful blog.

I have a question, please answer me (tnx in advance)

I can’t get the temperature by using WMIC (even with Admin privileges)

wmic temperature
No Instance(s) Available.

Reply

Dan August 13, 2012 at 2:41 pm

Thanks for the Command Line to change Win7 Default Printer.

You people are STARS ! ! ! !

:-) )

Reply

calvin February 9, 2013 at 11:00 am

I accidentally downloaded a program called”weatherbug”.Could you guide me on how to remove it using windows 8 command prompt?

Reply

Leave a Comment

HTML tags are not allowed.