Monday 13 May 2013

Best Command Prompt Tricks & Hacks for Windows


15 Popular Command Prompt Tricks & Hacks

1. Save A List of Files to a Text File by Extension

dir *.ext /s /b > files.txt

This command line will create a file called files.txt. When you open this file, there will be a complete list of all the files in that directory and all subdirectories with the .ext extension. You can then open up this text file in any text editor and work this the information.By changing the ext part, you can select different files. For example, if you wanted to list all of the PDF documents, you would type:



dir *.pdf /s /b > files.txt




2. Get Your IP Address Information

ipconfig /all

This will retrieve a pile of information about your network connection and IP information. From this command, you can get:
  • Host Name
  • Primary DNS Suffix
  • Node Type
  • IP Routing Enabled
  • WINS Proxy Enabled
  • DNS Suffix Search List
  • Connection-specific DNS Suffix
  • Network Adapter Description
  • Physical (MAC) Address
  • DHCP Enabled
  • IP Address
  • Subnet Mask
  • Default Gateway
  • DNS Servers 

3Get Installed Driver Information

driverquery


It can be very useful when troubleshooting to know what drivers are installed on a system. This command will give you a complete listing of the drivers and when they were installed.


4Copy Files Via Infrared Port


irftp filename.ext


This will fire up the Wireless Link dialog so that you can copy the specified file via an infrared port.


5Find Files Opened By Network Users


openfiles /query


If you are running a system and you want to know who has files open on your computer, this command will provide you a list of those users and the files that they have open.
Note: If you get an error saying The system global flag ‘maintain objects list’ needs to be enabled to see local opened files, you can fix this issue by typing openfiles /local on. You will have to reboot the system but it will resolve the issue.

6Monitor Port Activity


netstat -a 30


This will show you all of the TCP/IP ports that are being used on your system and what they are connecting to (or being connected from). It will continue to monitor these ports and refresh the information every 30 seconds. You can change the refresh rate by changing the number at the end of the command.


7Recover Information From A Corrupt File


recover filename.ext



If you have a disk with damaged sectors, you can attempt to recover as much information as possible from the damaged file. Data that is not damaged can be retrieved but data in damaged sectors will be lost.


8Defragment Remote Computer


rexec remotePC defrag C: /F


This command used the rexec command to force a defragment of the C: drive on the computer named remotePC. You can use whatever you want to for the command (I just used defrag C: /F as an example). This is very useful for remote maintenance.


9Retrieve Detailed System Information

systeminfo


With this command, you can retrieve the following information:
  • Host Name
  • OS Name
  • OS Version
  • OS Manufacturer
  • OS Configuration
  • OS Build Type
  • Registered Owner
  • Registered Organization
  • Product ID
  • Original Install Date
  • System Up Time
  • System Manufacturer
  • System Model
  • System type
  • Processor(s)
  • BIOS Version
  • Windows Directory
  • System Directory
  • Boot Device
  • System Locale
  • Input Locale
  • Time Zone
  • Total Physical Memory
  • Available Physical Memory
  • Virtual Memory Max Size
  • Virtual Memory Available
  • Virtual Memory In Use
  • Page File Location(s)
  • Domain
  • Logon Server
  • Hotfix(s)
  • NetWork Card(s)

10Automatically Defragment C: Daily

schtasks /create /tn "Defrag C" /tr "defrag c: /f" /sc daily /st 23:00:00 /ru "System"

This will set your computer to automatically perform a complete defrag of the C: drive each day at 11:00:00 PM (23:00:00). It does this by creating a scheduled task called Defrag C. It will run this command under the computer’s system account.


11. Map A Drive Letter to a Folder


subst W: C:windows

Sometimes, your directory structure can get pretty deep and complicated. You can simplify this a bit by mapping a drive letter to commonly used folders. In the example that I have given, this will create a drive letter W: and map it to the C:windows directory. Then, whenever you go into My Computer, you will see a W: drive and when you browse to it, it will automatically take you to the contents of the C:windows folder.
You can do this with any unused drive letter and any folder that exists on your system.


12.List All Tasks Running On The Computer


tasklist

It’s always good to know what is running on your system. This is the command line version of the processes tab in Taks Manager.


13. Kill A Program


taskkill /im programname.exe /f

If, when using the tasklist command, you discover that there is something running you just want killed. This is the way to do it! Just note the program name and use it in place of programname.exe


14. Reboot a Remote Computer


shutdown -r -f -m remotePC -c "System will be rebooted in 20 seconds"

Sometimes, you just need to reboot a system. This will do it remotely and give the user a 20 second warning.


15. Manage your HDD

Diskpart










How To Make System File

To make system file you need to open command prompt. Then go to folder thet file you want to make as a system file. 
Type ATTRIB +s +h +r "files name" and ENTER. 

If you want to enable to view the system file go to folder option -> view and unchecked the

"Hide protected operating system files"



About attrib
Attrib allows a user to change the properties of a specified file. Using attrib, the user has the capability of changing the file to have any of the below attributes.

S : System file attribute.
H : Hidden file attribute.
R : Read-only file attribute.

Sunday 12 May 2013

Can’t Copy Large Files in Windows to External USB Drive



Why We Can’t Copy Large Files in Windows ?

The problem not some sort of copy protection but that the file being copied is too large for the file system to manage. The Windows File system allows to format a hard drive in two different file systems: FAT32 and NTFS. These file systems differ in the size of file they can handle. FAT32 can only handle file sizes upto 4GB in size.
Hence, if you are trying to copy a 4gb+ file onto your FAT32-formatted hard drive it won’t copy giving you an error.
So, to copy files larger than 4GB, make sure that the file system on the hard disk you are copying to is NTFS and not FAT32. Portable USB hard disk drives (by default) come formatted as FAT32 for stability with most OS.

Change File Creation Date, Last Edited Timestamp on Folders, Files

Just like the title says here are 3 free utilities to change file creation date in windows of any program, file or folder. Sometimes this might be necessary for too many reasons. But a farfetched idea is if a team of developed working on a program in different time zone then the compiler will face timestamp errors.


Change File Creation Date, Last Modified Date of Files & Folders

1. eXpress TimeStamp Toucher


XTST is an small freeware utility to change file creation date and modify timestamp attributes of couple of files at once. After starting the program, on the screen should appear the main program window. Enter path to root folder of files to processing, check or uncheck appropriate checkboxes, enter the date and time values and click the "Start" button.



2. Restamper


Restamper modifies time stamps of files. Supporting the precision of 100 nanoseconds, the full range of date and time that Windows takes can be handled. Logs and backups are provided in files. As long as you keep backup files, it is possible to restore the old state.


3. NewFileTime



With this utility everyone can have the ability to make quick corrections and change the creation date, last access and modification dates/times of the files or folders on their PC. With this you can specify if files, folders or both will have their dates/times modified. This also specifies if just files and/or folders in the indicated directory are to be modified or if those items in the entire directory tree will be modified.

# Download Here

Make Windows Welcome You With Audio, Voice Messages with Narrator

You might have known the use of windows Narrator for a long time. It is a built-in text to speech program in windows. But what if windows welcomes you with a voice message when you logon to your PC. That would be cool, atleast to showoff.


Create VB Script Files to Make Narrator Narrate Preset Text Automatically


To use this trick, follow the instructions given below:-
  1. Open Notepad and Copy, Paste below Code.
  2. Write any desired text.
  3. Save the file with .vbs extension. For eg., welcome.vbs. (Select File Type as All Types while saving).
Dim speaks, speech
speaks=”John, Welcome to your Computer“;
Set speech=CreateObject(“sapi.spvoice”)
speech.Speak speaks
You can use this script to run anywhere for example…

# Make Windows Welcome you With an Audio Voice Message During Logon

Place the “welcome.vbs” file in your windows startup folder.
  • XP - C:\Documents and Settings\All Users\Start Menu\Programs\Startup
  • Vista, Seven – C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Now when the next time you start your computer, Windows XP will welcome you in its own computerized voice.
Note: For best results, it is recommended to disable default welcome sound. For XP go to Control Panel > Sounds > Sounds Scheme. For Seven Right click on desktop > Personalize > Sounds > Uncheck Play windows startup sound.

# Use AutoRun to Narrate a Voice Message When you Insert USB, CD [XP Only]

Now create an autorun.inf file in notepad with the following code…
[autorun]
open = welcome.exe
icon = myicon.ico
action=Run Welcome Program
Simply place this and the exe in the root of your USB drive or CD, DVD. So that, next time you insert a disk, usb Narrator will auto narrate the preset voice message for you. It can be instructions or just a cool showoff message like “hello master, your pen drive is successfully inserted to this pc”. Read more about creating autorun for cd, usb programs to start automatically. Note this works only in XP as autorun doesn’t work in windows seven.
Let us know other cool ways of using this…

This the Most Silly Bug in Microsoft Windows Calculator ? 2-2 != 0

The windows seven calculator is way cooler its previous versions. But it has this same calculation bug it had earlier. If you subtract 2 from the square root of 4 then the result is not 0 but -1.068281969439142e-19. Interesting is previously in windows XP the result was -8.1648465955514287168521180122928e-39. So that’s an update in Seven right ?


Silly Bug in Microsoft Windows Calculator ? 2-2 != 0 ?

Step 1 : Open Windows Calculator.
Step 2 : Press the number 4 and apply Square root which gives result 2.
Step 3 : Now subtract 2 from the answer ie, 2-2 and press equals [=].




Shocking bug right ?
I learned that 2 – 2 = 0 but windows calculator has some different suggestion. Watch the demo below

Bug in Microsoft Windows Calculator [Video]



Access to Hidden Themes, Wallpapers in Windows 7


Follow detailed tutorial below to unlock hidden themes…
Step 1 : Open "Run" from your Start Menu and type C:\Windows\Globalization\MCT and then press Enter. You can press "Windows+R" hotkey to open Run. (or directly navigate to that MCT Folder)

Step 2 : It will open up a window containing all the theme folders for different countries like Australia, Canada, United Kingdom , United States and South Africa. Choose any to access its wallpapers and theme.

Step 3 : Now open the folder and get the wallpapers directly from here. You can directly set one as desktop wallpaper by right clicking and choosing second option.

Step 4 : Also you can install the themes from here, just enter into the "Theme" folder and double click on the .theme (Windows Theme Application) file. It gets installed in a few seconds. 

Make A Window Stay on Top of Other Windows, Even After Losing Focus

Sometimes its useful if we can make a window stay on top of other window elements. Be it a program like the calculator or a game window etc. Here are some tools which will let you control a window to keep it at top always even if it loses focus.

 1. DeskPins – Pin A Window to Stay on Top


DeskPins can be used to make any application topmost, that is, to keep it above all other windows. Just grab a pin from the DeskPins icon in the system notification area (a.k.a. taskbar tray) and click on any window. This functionality is identical to the "Always on Top" setting found in some programs.




With DeskPins you can add this feature to any program! Now, if you have a particular application that you want to keep it always on top at all time, instead of activating the deskpins everytime, you can create an Autopin rule such that the application is automatically pin to the desktop each time it is launched.

2. PowerMenu – Add Useful Options to Window Controls incl. Always on Top


PowerMenu is a small application that some extra menu items to the windows control menu in addition to the standard "Close", "Maximize", etc options. The extra menus are: Always On Top, Transparency and Minimize To Tray.You can choose to keep an app "always on top," meaning that no matter what else you do, you’re still going to see that window. 


You can also add transparency to windows, letting you keep an eye on them while seeing what’s behind them as well. Assign a priority to tasks, to decide which applications get all the horsepower and which need to just sit down and wait their turn. And then there’s the ever-popular "minimize to tray", which lets you keep an app running but gets it out of your face.

Download Here

6 Very Useful, Productive Windows 7 Tricks You Must Use


1. Save Images, Copy Files to the Desktop Quickly

Click hold the item, like an image on a webpage and drag and drop it into the Show Desktop button in the right-down corner of the screen, it instantly shows the desktop. Release the mouse hold and the item will be saved, copied to your desktop. You can use this copy any file to desktop.


2. Extended Options in "Send To" in Right Click Menu

Hold down [Shift] key and then right-click on any file etc to get more advanced version of Send To with extra send to locations. Very useful to send files to your Library folders etc. 



3. Run Start Menu Programs as with Administrator Privileges Directly

Instead of using the Right Click > Run as administrator option, you can press hold [Ctrl][Shift] and then click on the program to directly run it as administrator. In case if you don’t know, some programs don’t work properly if you don’t run them with admin privileges like netbeans, cmd etc.


4. Search Tips in Windows 7 Explorer

Use the asterisk (*) as wildcard : For eg: To search for all files with the extension .doc type *. doc
Search by Size : Type size: and it will show you options to search by size (see above). Simple select a range and then add your keywords.
Search by Type : Type type:image or type:doc or type:video along with keywords to specify you search for file type.



5. Drag and Drop Files from your Jumplist into Gmail as Attachment

Jumplists are your most recently used files etc by an application. Right Click on a Taskbar launch icon to show the jumplist.

Now gmail has this useful feature that lets you drag drop files into the browser while composing to automatically add it as attachment to that email message.
So you can drag drop files from jumplists for eg: right click on the word icon drag drop the file into gmail compose window to add it as attachment. There are other site which let you to upload files via drag drop and you can use this technique for them too.




6. Record a PC Problem Step by Step with Problem Steps Recorder

Windows 7 comes with the awesome Problem Steps Recorder to automatically capture the steps you take on a computer, including a text description of where you clicked and a picture of the screen during each click (called a screen shot). 





Lock Your Windows PC with a Transparent Screen Over Desktop, Explorer

I don’t know why you might need this but its definitely better than using the Logon screen (http://media.snaphow.com/images2/logo_windows.png + L). In fact you can have a look what’s happening behind even if your desktop screen is locked.


ClearLock is a transparent screen locker aimed to make the computer tech/system admin’s live easier by providing a way to disable input to a computer while still allowing you to see what is going on. It is completely portable an can be run in a PE environment or on a live system without leaving anything behind.

# Download Here

Get the Old MS-Paint Interface Back with Paint XP for Windows 7, Vista

Paint XP for Windows 7 allows you to get your old XP interface of ms-Paint in Windows 7. One of the main changes in the user interface in Windows 7 is that the addition of the ribbon interface with the Paint program.



The new ribbon interface is very useful for navigating between options, but many former users of Windows XP are losing their old interface of choice. If you are also losing the good old simple user interface of the paint program, then there is no need to worry anymore.

# Download Here

Share Transfer Files Between PC, Laptops Over Wi-Fi Ad-Hoc Network

Visiting at your friends place and would like to transfer photos of a shared trip from your laptop to theirs but have no LAN cable ? Sitting in room with your friends, all have laptops, but have no access point or a hotspot in the room. Play a games or chat with them over wi-fi.


Create Ad-Hoc Network Over a Wi-Fi, LAN Connection Easily

WiPeer is an useful of applications for collaborating in server-less environment, such as home and small office networks as well as peer-to-peer wireless networks over wi-fi network. These tools include forming local social networks, network chat, file sharing, searching among shared files in other computers, and interactive multiplayer games for the network.



To use WiPeer, one needs at least two computers with a network card. If the two computers have a wireless card, it is possible to establish direct communication between the two computers without any router.

# Download Here



Features

  • Ad-Hoc Social Networks : Enables users to define personal profiles, and to view other on-line users profiles. This way, it is possible to meet people with similar interests.
  • Friends Locator : Lets users to define a list of contact persons. Whenever one of the contact persons connects into the network, WiPeer notifies the user about it.
  • Interactive Multiplayer Games : Comes bundled with several multiplayer games including Chess, Chinese Checkers, Reversi, and Connect 4.
  • Chat (Instant Messaging) : It is possible to chat with other on-line users. WiPeer supports both private chats (with specific users) and public chat rooms to which any user may join.
  • File Sharing : File sharing becomes a breeze with WiPeer. You may share both files and complete folders either to a specific user or to anyone in your network. You can even use WiPeer to share files between Windows 7, Windows Vista, and XP.
  • File Searching : Supports searching for files located in the computers of other users in the network. The search is guaranteed to return only files that were shared with the searching party. Also, WiPeer accomplishes this goal without exporting the index outside any computer, so this feature does not compromise the privacy of WiPeer users.
  • Creating Ad-Hoc Networks : Ad-hoc networks are formed between two or more laptops equipped with WiFi without reliance on any access-point or other third party infrastructure. In particular, there are no connection fees and no dependence on hot-spot availability. In other words, they can be formed anywhere, including in airlines, trains, busses, etc.
  • Peersonalizer : Notifies you whenever one of your Facebook friends, or a friend of a friend, is nearby.
You can use WiPeer both in order to create wireless ad-hoc networks between laptops, or over an existing LAN (such as a home network or office network). If you wish to use WiPeer in a non-default network, simple choose the "File->Connection Options" menu and choose the network type that you need.

Make DOS Print List of Files In a Folder, Get Filenames in .TXT File

If you are a programmer or developer sometimes you might want to list all file names in an excel sheet from particular directory, folder in your computer. Copying each and every filename separately is big hassle and the process becomes more tedious as the number of files in that directory increases which makes it almost impossible to manually get filenames of files in a folder.

If you are a windows user then its possible to list all the filenames of a folder into a text file. And for that purpose, you won’t have to install any extra application, you can do it directly with Windows Command Prompt (DOS).



Print List of Files In a Folder into a .TXT File Using CMD-DOS


Step 1: Open Command DOS Prompt in administrator mode. Click on Start button/orb in Windows 7, Vista and type "cmd" in the search box. The command prompt appears in the list as cmd.exe. Now, right-click on it and select "Run as administrator".




Windows XP users can open command prompt by simply typing cmd in the Run window (Win + R).

Step 2: In the command prompt, type cd\ and hit Enter to go to root. Then the command you must execute to print the list of file names is:

dir [folder_location] /b >[output_file_name.txt]

Let us describe the command by an example. If you want to print the file name of the folder Assignment and if the full path location of that folder let be D:\important\documents\Assignment, then the command to print the file names should be as below:



dir D:\important\documents\Assignment /b >chart.txt

Make sure that you have given the full path of the source. The output file will be created in the root drive where the command prompt is running. In this case, my Windows drive is assigned as C:, so the files is created as C:\chart.txt.
The output file, here it is chart.txt is a text file which opens with Notepad in Windows system by default. So whenever you need to use the name of the content of a folder in any application or want to print them, you can easily do that by the above procedure.
Suppose you want to place all the file name from a specific folder into a Microsoft Excel file. Just create the list of file name and open it. Press Ctrl+A to select them all and copy (Ctrl+c) then go to excel and paste (Ctrl+v). The files name will be automatically added one-by-one in separate cells. 


Software, Tools to Get List of Files in a Folder in Windows




Increase Windows 7 Experience Index to Get Highest Score 7.9 Rating

Did you know, Vista and Windows 7 has this useful tool for advanced users called Windows Experience Index to test, benchmark their system and measure the efficiency of your computer’s hardware and software performance based on their configuration and how they work together with each other. 


You can access the "Windows Experience Index" tool by clicking the Start orb/button and searching for "windows experience index" and then clicking on Check the Windows Experience Index. or by Pressing Widows Key + Pause or going to System Properties by right clicking My Computer.
Here is an example of my PC’s score… (original)





How to Fake Your Windows Experience Index Score to Get Highest Rating

Now, lets see how to change it manually and get the highest windows experience index score by doing a simple edit in a system file containing your PC’s rating.
Go to C:\Windows\Performance\WinSAT\DataStore and look for a file named (date) Formal.Assessment (Initial).WinSAT.xml






Open this file with WordPad and edit your score manually to 7.9 (that’s the max. value). Look for a code like <SystemScore>4.9</SystemScore> and change the current rating to 7.9 and save the file.
Now go to your Windows Experience Index screen again and you will see that your score is now the highest rating ie. 7.9 . You can set it at a lower rate to make it look natural while fooling your friends. See my result after the edit.



You can click Re-run the assessment to re-analyze your system performance and give you the actual score on that page.

Generally, a higher score/rating means that your computer will perform faster, better than a computer with less base score while performing advanced resource-intensive tasks and running heavy software which require more processing power and system memory.

Saturday 11 May 2013

Hack to Change Windows Media Player 12 (WMP12) Library View Background Image


Windows Media Player 12 (WMP12) is going to be released as part Windows 7. The main feature of Windows Media Player 12 or WMP 12 is the significantly enhanced and beautified graphical user interface (GUI). Gone and removed is the “Now Playing” button. Instead, “Now Playing” is now a full screen (video size adjustable) playback view with just playback controls.

Other feature of WMP 12 is inclusion of native support for H.264, Xvid and DivX video as well as AAC audio. WMP12 also adds Library View to separates library management from the “Now Playing” window. Library in WMP12 allows user to manage media files such as Playlists, Music, Video, Pictures, Recorded TV, Radio Stations and other media.

The Library View of WMP 12 allows user to use and apply a background image. In fact, WMP12 includes several background image by default. If you don’t like the current background of Windows Media Player 12 Library View, use the following registry hack to modify and change the background image to other included image.

How to Change Background Image of Library View in WMP12

1. Run Registry Editor (RegEdit).

2. Navigate to the following registry key: 


HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences

3. In the right registry value pane, locate the REG_DWORD (DWORD 32-bit) registry entry named LibraryBackgroundImage




4. The default value data for LibraryBackgroundImage is 6. Modify the value data to other number to change the WMP12 Library background image.
The valid value is 0 to 6 for 6 different background images, with 0 as no background image. As a convenient, the screenshots of all background images are listed below, from 0 to 6:





5. Exit from Registry Editor and restart Windows Media Player for new background image to take effect.
The new background images are apparently stored in wmploc.dll. With the above trick, there is no need to manually hack the wmploc.dll to get the new background image on WMP12.

Enabling Windows Media Player bar in Windows 7 taskbar

Unfortunately Windows Media Player 12,  already installed with Windows 7, has no support to minimize as toolbar in the taskbar. To enable this bar, just need copy a file from Windows Media Player for Windows Vista. Now I will show how do this:

1. You will need of a dll called wmpband.dll, that come with Windows Vista.

file location:
%ProgramFiles%\Windows Media Player\wmpband.dll

If you not own it Download here


2. Copy the wmpband.dll into %Program Files%\Windows Media Player\ folder of Windows 7 (with WMP12).

3. Go to Control Panel -> System and Security -> Administrative Tools, and open Services panel.

4. Stop the Windows Media Player Network Sharing Service.



5. Open the Command Prompt with administrator privileges. Star > All Programs > Accessories > right click in “Command Prompt” and click “Run as Administrator”.

6. Run and execute the following command:

regsvr32 “%ProgramFiles%\Windows Media Player\wmpband.dll”

7. Restart the Windows Media Player Network Sharing Service.

8.Start Windows Media Player 12.

9.Minimize the window of Windows Media Player.

10. Right click on Windows Taskbar, and select Toolbars, and choose Windows Media Player from the list (a tick will appear beside it on subsequent view). 


11. The Windows Media Player toolbar will appear close to notification area (system tray). 




For user facing the following error message, just click on “Yes” to continue:
The Windows Media Player toolbar isn’t compatible with this version of Windows
If you continue, the toolbar might appear incorrectly. To check for an updated version, go to the software publisher’s website.
Do you want this toolbar on your taskbar?
Tip: If there is problem enabling the Windows Media Player 12 toolbar in Windows 7, try to perform the steps above again after a clean reboot and before running Windows Media Player.

Thursday 9 May 2013

What is C Programming


Batch File Programming




Introduction
Batch file programming is the native programming offered by the Microsoft Windows Operating System. Batch file is created using any text editors like notepad, WordPad, WinWord or so on, which comprises of a sequence of built-in commands used to perform some often done tasks like deleting a series of files of same type or of different type, creating logs, clearing unwanted craps from your computer and even for creating a batch VIRUS.

Whenever a Batch program is executed, it was interpreted line-by-line by the CLI (Command Line Interpreter) command.com or the cmd.exe. Batch file is really helpful in automating tedious tasks and for maintaining system logs. The commands used while creating a batch file are case insensitive, in the sense that it may accept both small and upper case letters.


Modes:
There are two different modes that are supported by DOS (Disk Operating System), they were,
1. Interactive Mode.
2. Batch Mode (Silent Mode).


Interactive mode:
In interactive mode, when a command is executed, it interacts with the user for input and depending upon the input supplied by the user, the further processes are carried out. For example, let’s take the ‘del’ command.

The ‘del’ command is used for deleting files that reside inside a directory. Now I am going to delete all the files inside a folder named ‘a’, and when I executed the following command, it is interacting with me prompting “Are you sure (Y/N)?”, confirming the deletion operation, and depending upon my input, it decides what to do. If I hit ‘Y’ then it will delete the files specified, else if I hit ‘N’ then it won’t delete.

C:\>del a
C:\a\*, Are you sure (Y/N)? y


Batch Mode:
Batch mode can also be referred as ‘Silent mode’ or ‘Quiet Mode’, and this is mere opposite to the interactive mode. The command that operates at batch mode will never interact with the user at any instance, instead it will take care of every operation by itself.

For example, I am going to explain this by using the same ‘del’ command. There is a switch available for the ‘del’ command, which makes the command to operate at silent mode, and that switch is ‘/Q’

C:\>del /Q a
C:\>

In this case, the command is not at all interacting with me, whether to delete those file or not. In the above example, I have tried to delete the same files in the same folder by using the same command but with a different switch. Anyhow both the commands will perform the same operation but the mode it
operates differs.



Wednesday 8 May 2013

Make over 1,000 folders in few seconds

Make an unlimited amount of folders in any place you want.

1. Open notepad and type :

@echo off
:top
md %random%
goto top 







@echo off makes it so that it appears to be a blank screen but actually its making hundreds of folder.
md %random% is command that creating folders with random names.
goto top – return to label 
:top, infinite loop


2. Save it as 1000folders.bat

3. After that you will get icon that looks as show below.