Linux and Windows IT Support  

dedicated-technology-experts

Windows, Apple and Linux IT support and services.

For Software and Web Development.

Running external command (VBS & WSH)

VBSccript_file_format_iconThere are various ways to execute an external command from VBS. Here are a few examples.

1. Using Exec

If you want to run an application in a child command-shell, providing access to the StdIn/StdOut/StdErr streams:

Example 1: Capturing the exit code:

Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")

Set oExec = WshShell.Exec("notepad")

Do While oExec.Status = 0
WScript.Sleep 100
Loop

WScript.Echo oExec.Status

Wednesday, 17 August 2011 12:39
 

"View Source" in Firefox 6 - now

firefox-logoQ: After being there for 5 versions the "View Source" option is gone from View View Source. Where is it?

A: New changes bring new problems. I have no idea why that was removed - I think it can be filed under "change for the sake of change".

a) You can view the source by right-clicking on the page and selecting View Source

or

b) You can press Ctrl+U and it will pop-up the page source window

Wednesday, 17 August 2011 07:45
   

Display "From" field in Outlook

outlook_2003_logoQ. How can add a From button to Outlook 2007?

A. First, open Outlook.

2. Click on "New Message" (or Ctrl+N as a keyboard shortcut).

3.Click on "Options" → "Show From" button

Wednesday, 10 August 2011 12:34
   

Disable protected mode (Office 2010)

200px-Microsoft_Office_2010_LogoQ. I'm getting an error when opening Word or Excel 2010 files "Protected View: This file originated from <blank> and might be unsafe". How do I get rid of it?

A. You need to disable protected mode. To do that, follow these steps:

1. Open MS Word 2010 and go to FileOptions

Wednesday, 27 July 2011 21:04
   

Remove shared drive (using VBScript)

VBSccript_file_format_iconQ. Anytime I plug in my flash drive, Windows creates a share (eg. F$) that is accessible to people over the network. I can't permanently un-share that drive, but how would I speed up the process for removing it every time?

A. Yes, it is true that this share is accessible to people over the network, however, it is only accessible for anyone with admin rights and the person has to know that you have an F:\ drive plugged in in order to access it. In any case, this is how you would do that:

Wednesday, 27 July 2011 10:40
   

Change headers and footers in Word

word2003iconQ. I have this fancy report (resume, essay, etc.), but I would like to change the header and the footer only on the front page.

A. That's fairly easy to do. When you change the header and the footer on one page, it changes it on all the others, so you need to divide the document into sections. Unfortunately, Word allows you to have only Different odd and even or Different first page. You cannot have custom sections (at least Office version 2003 - may be later versions allow you to have those)

To change the header or footer on the first page only, do the following (MS Word 2003):

Wednesday, 13 July 2011 06:32
   

Change offline folder location (Outlook 2003)

outlook_2003_logoQ. I would like to store my Offline Folders file (.ost or Cached Exchange file) on a different drive. How would I do that?

A. Follow these steps:

1. Make sure you close Outlook (reboot to be safe)
2. Go to Control Panel, open Mail and then click E-mail Accounts.
Thursday, 07 July 2011 16:27
   

Page 10 of 21

<< Start < Prev 7 8 9 10 11 12 Next > End >>
   
Copyright © 1999 - 2024 Virtual Helpme | Trusted IT Services | Original Template: Allrounder