Tag Archives: dos

Windows: How to Get your Laptop’s Serial Number and Model Name Tips, Tricks and Tutorials 08 AUG 2014

20091016-Windows-Command-PromptMost big name laptops and desktops all have serial numbers and model names, useful bits of information when looking up tech assistance. This information is usually printed on stickers and placed somewhere on either the bottom or the back of the device, but as we all know, stickers aren’t exactly the most permanent of solutions three or four years down the line.

If you are running Microsoft Windows (tested on Windows 7, Fujitsu Lifebook A Series laptop), and have lost your serial number or want to find out the model name, open up a command prompt (search for and execute cmd.exe in the Windows start menu).

With your DOS prompt now open, run:

wmic bios get serialnumber

This will retrieve your laptop’s serial number. To get the product name, run:

wmic csproduct get name

Useful to remember.

For interest’s sake, the heavy lifting is being done by Windows Management Instrumentation Command-line (WMIC), which uses the power of Windows Management Instrumentation (WMI) to enable systems management from the command line. See the related link for more info.

Related link: http://technet.microsoft.com/en-us/library/bb742610.aspx

How to Delete a Folder using the Windows Command Line Software & Sites 30 MAY 2013

blue-folder-iconIf you find yourself stuck in the Windows Command line environment and have an itching desire to delete some of your folders, here is the command to do it: RMDIR.

If like me you are one of the older guys reading this, then you would probably have fingered the old (DOS) DELTREE as the command to use, but seeing as this was technically replaced ages ago, the correct answer is in fact RMDIR, which is responsible for removing a directory (and with switches, an entire directory tree, folders, files and all!).

Given a folder called ‘annoying’, you can banish it by running:

rmdir c:\annoying

Of course this will fail if ‘annoying’ isn’t empty. To get around this and delete the entire directory tree, in other words a recursive file and folder delete, we employ the /s switch:

rmdir /s c:\annoying

And if we don’t want to be prompted or bothered again by what is about to happen, we force the command into quiet mode with the /q switch:

rmdir /s /q c:\annoying


Related Link: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rmdir.mspx