Login | |
|
 |
RE: VBSCript which will execute commands in start->run - 11/11/2005 5:44:49 AM
|
|
 |
|
| |
Country73
Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
XAVIOR78, What exactly are you wanting to accomplish by "accessing" the START -> RUN?
|
|
| |
|
|
|
 |
RE: VBSCript which will execute commands in start->run - 11/11/2005 6:03:58 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
Welcome Xavior78, The "run" dialog is nothing more than the command prompt with GUI :) You could use the objShell.Run "cmd /k dir c:" to e.g. show the contents of the C-drive (the /k will make sure that the command box is not closed after runing the command)
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: VBSCript which will execute commands in start->run - 11/11/2005 6:17:33 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
it could as simple as this: Set objNetwork = CreateObject("WScript.Network") objNetwork.AddWindowsPrinterConnection "\\servername\hp-modelnumber" Here is an example where it also sets it as default: Option Explicit Dim objNetwork, strUNCPrinter strUNCPrinter = "\\servername\hp-modelnumber" Set objNetwork = CreateObject("WScript.Network") objNetwork.AddWindowsPrinterConnection strUNCPrinter objNetwork.SetDefaultPrinter strUNCPrinter
< Message edited by Snipah -- 11/11/2005 6:20:04 AM >
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
|
|