Browsing articles tagged with " microsoft"
Nov 4, 2010

How to call a batch file from within another batch file

Have you tried running an external batch file from within a batch file or script, only to find out that the original batch file script prematurely terminates as soon as the external batch script is executed?

For example:

Let’s say we have a main script called “mainscript.bat” and two external scripts called “external1.bat” and “external2.bat”, with “mainscript.bat” having the following lines:

@echo off
c:\testscripts\external1.bat
c:\testscripts\external2.bat

When you try to run the script, you’ll notice that external1.bat will run but external2.bat won’t. This is because external1.bat (the called script) won’t pass the control back to mainscript.bat (the calling script) — which means it won’t get to run external2.bat.

In order to pass the control back to the calling script, you need to use the “CALL” command.

Here’s a simple fix for mainscript.bat:

@echo off
CALL c:\testscripts\external1.bat
CALL c:\testscripts\external2.bat

When you run mainscript.bat,  it will call (run) external1.bat. When external1.bat finishes, it will pass the control back to mainscript.bat. Which will then process the next line on the script — in this case, it will call (run) external2.bat — and so on.

Popularity: 1% [?]

Nov 7, 2009

How to enable telnet on Windows 7

The telnet command is disabled by default in Windows 7. But you can easily enable it using the following steps:

1. Open the Windows 7 Control Panel (Start > Control Panel)

Windows 7 Control Panel

Windows 7 Control Panel

2. Click on the “Programs” link.

Windows 7 Control Panel - Programs

Windows 7 Control Panel - Programs

3. Under the “Programs and Features” setting, click on “Turn Windows features on or off” link.

Windows 7 Control Panel - Turn Windows features on or off

Windows 7 Control Panel - Turn Windows features on or off

4. Tick the “Telnet Client” selection box. Wait for Windows 7 to install and enable the selected feature.

Wait...

Wait...

5. Done! You should now be able to run the “telnet” command on the Windows 7 command prompt.

Windows 7 telnet command

Windows 7 telnet command

Popularity: 2% [?]

Oct 16, 2009

How to solve MS Outlook Error: “Cannot start Microsoft Outlook. Cannot open the Outlook window.”

If you cannot open Microsoft Outlook 2007 and get the following error when opening Microsoft Outlook 2007: “Cannot start Microsoft Outlook. Cannot open the Outlook window.” after previously being able to open it, then you might want to try the following:

Go to Start > Run and type the following: “outlook.exe /resetnavpane” (without the quotation marks) and press Enter.

This should fix the problem.

The “/resetnavpane” Outlook command switch clears and regenerates the MS Outlook navigation pane for the current profile.

Popularity: 1% [?]

Pages:12»

Sponsors

Archives

My mobile site

QR Code - scan to visit our mobile site

Switch to our mobile site