Running external command (VBS & WSH)
There 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
"View Source" in Firefox 6 - now
Q: 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
Display "From" field in Outlook
Q. 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
Disable protected mode (Office 2010)
Q. 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 File → Options
Remove shared drive (using VBScript)
Q. 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:
Change headers and footers in Word
Q. 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):
Change offline folder location (Outlook 2003)
Q. 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.
More Articles...
Page 10 of 21
<< Start < Prev 7 8 9 10 11 12 Next > End >>