Showing posts with label Command. Show all posts
Showing posts with label Command. Show all posts

Friday, October 15, 2010

Batch Wait Command (Advanced)

The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

Home

Guides, Tips, & Help

Computer Features

Tech News

Internet Security

Ask The PC Expert

Suggested Software

Process Library

Computer Terms

Contact Us

Subscribe via Email

Subscribe via RSS



 
  A batch file is a file in the operating system that holds the instructions that the operating system has to perform. They are executable text files and are run by the system in a line-by-line procedure. They are an important part in the programming unit of the computer and are mainly located in the core blocks of computing as they contain executable statements that are regularly used by the operating system. They are more common in UNIX based system, where they are known as shell or shell scripts, than in windows based systems. Batch files are generally used by the system administrators to initialize repetitive processes. These files have the extensions such as - .bat, .cmd, or .btm. There is a subtle difference between the file extensions. The first one (.bat) is used by Microsoft for batch files and can be used by most of the OS, the second(.cmd) is to be executed in the command prompt and the third(.btm) by 4DOS and is much faster as it is loaded at once rather than the line by line loading.

Batch Files can be used to do plenty of things. Batch wait is an example of one such case. The implementation of the WAIT command in the batch file makes it to pause or wait for a specific number of seconds before proceeding further. This is of great use as it provides support to batch files which display some text providing the users time to read and also providing it time to connect with other resources.

One can apply the wait command in the batch file when there is a time period that is required to be attached to the batch file. It makes the batch file sleep for a few seconds before the work actually starts. The wait command does not work for UNIX, but works for Windows and DOS. There are different ways to implement the wait command. Since the operating systems do not come inherent with it, one has to create a file to implement it. The methodology is simple. First, a batch file has to be created with the following code:

@ping 127.0.0.1 ?n 2 ?w 1000 > nul
@ping 127.0.0.1 ?n %1% -w 1000> nul

This particular coding should not be used for real time processing as it is known to cause the batch file to run over for a few milliseconds. There is another provision in Windows XP and Windows 2003 as an alternative to using PING, there is a batch file SLEEP that can be successfully incorporated. For the SLEEP command, you will need the Windows 2003 Resource Kit.

Create a batch file with:

@choice /T: N, %1% >NUL.

Then there is a choice to make the file wait. Now, depending on the amount of time that you would want the file to wait, you can add the code. If you want a time lag of say 20 seconds, the code will be as follows:

ALL WAIT 20

The above code works completely fine for windows 95 and windows 98.

Web site and all contents ? Copyright ComputerTooSlow.com 2008, All rights reserved.Grand Rapids Computer Repair  Huntington Beach Computer Repair  Mobile Computer Repair  Moreno Valley Computer Repair   

View the original article here

Wednesday, October 6, 2010

Changing Drive Letters and Directories in the DOS Command Prompt

The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

Home

Guides, Tips, & Help

Computer Features

Tech News

Internet Security

Ask The PC Expert

Suggested Software

Process Library

Computer Terms

Contact Us

Subscribe via Email

Subscribe via RSS



 
  DOS has various useful features with which you can organize files under directories that you create. You can search your computer system for files on any drive or any directory with comparatively simple commands. You should be aware of the fact that when working on Microsoft MS-DOS operating system, all the hard drives and other media drives that are connected to your computer are assigned drive letters which can be helpful while running programs. If we consider the default items, MS-DOS will usually connect to the C: drive of your computer but you can change the drive letter with a simple command. Let us now consider a few instructions that are necessary if you are running computer with MS-DOS or are helpful if you like to use the command prompt in Windows 7, Vista, or XP. First, you need to boot up your computer and wait until you reach the MS-DOS command prompt window. In Windows, you can get to this my going to Start -> Run -> typing cmd.exe-> hitting OK. Moving forward towards the second step, after completing the first step, have a look at your cursor on the screen to see what drive the system is running at present. For example, if you see "C", then your computer is accessing the drive C. After this, replace "e" and type "dir e." in the command prompt window with the drive letter you want to change and then press "Enter". This command will then list all the files on the drives you select, but officially it will not change to the new drive. Coming towards another step, replace "e" and type "e." into the command prompt with the drive letter you want to change. Press the "Enter" key to change the drive letter that MS-DOS is accessing officially. After running the command, the letter that is next to your cursor will change into the selection you made. This is one the best ways to change the drive letter of MS-DOS. Let us now consider few steps to change drive letters or directories in the DOS command window. Well, writing commands into a DOS command window is not something hidden. Windows can help you get from one folder or directory to the next. Moreover, sometimes, it is easier to type a command in a DOS window to get the results. There are few steps that should be considered if you wish to know how to change between the directories in a DOS command window. Firstly, go to the run box and type cmd, a DOS command window will appear. Then proceed with going towards the C: drive. Remember, if you type cd... You will again come in C :\>. To go to the windows directory on your computer, simply type cd C:\ windows and if you want to open my pictures, type cd C:\ document and settings\ your username\my documents\my pictures.

There are few precautions that should be taken while typing letters. For example, be sure that you type it exactly with a space where there is required because even one single mistake can make you retype the words again or may take you to another window. A helpful tip is that you can press the up arrow to get the last command you just entered. In addition to all this, before windows XP came along, make sure to change the drive letter to get to the windows setup disc and then type in setup for installation procedure to start.

Web site and all contents ? Copyright ComputerTooSlow.com 2008, All rights reserved.Rockford Computer Repair  Cape Coral Computer Repair  Springfield Computer Repair  Providence Computer Repair   

View the original article here