Search found 13678 matches

by jvierra
Thu Jul 12, 2007 4:25 am
Forum: VBScript
Topic: Having Some Strange Problems with My Script
Replies: 3
Views: 2157

Having Some Strange Problems with My Script

Suggestion: Download and install McAfee Protection Pilot 1.5. You can install this anywhere in the network inside the firewall. Set PP to do all updates and patches for McAfee products installed on all workstations and servers. Severs and workstations can be grouped acording to AV policy settings an...
by jvierra
Thu Jul 12, 2007 3:27 am
Forum: VBScript
Topic: How to use telnet within VBScript
Replies: 3
Views: 10311

How to use telnet within VBScript

You can do this with PowerShell using the NET calsses. See: http://gsexdev.blogspot.com/2006/09/doing-smtp-telnet-test-with-powershell.html and http://www.leeholmes.com/blog/ReplacingTelnetexeNowRemovedFromVista.aspx There are other examples if you search with goole for "powershell telnet" This can ...
by jvierra
Wed Jul 11, 2007 3:56 am
Forum: VBScript
Topic: Disk Management
Replies: 2
Views: 1210

Disk Management

All disk and volume management is available from WMI.

There is a computer management object but it's not as easy to use and is not a direvt mapping to COmputer Management but, I believe, is one of the objects that CM relies on.
by jvierra
Sun Jul 08, 2007 11:24 pm
Forum: VBScript
Topic: CScript vs WScript
Replies: 14
Views: 14183

CScript vs WScript

Either combine the scripts into one file or use the ScritpControl to accomplish whatyou are trying to do. It's the only way.
by jvierra
Sun Jul 08, 2007 4:00 am
Forum: VBScript
Topic: CScript vs WScript
Replies: 14
Views: 14183

CScript vs WScript

The jst type the name of the file on the command line like this CSCRIPT //NOLOGO myscript.vbs You cannot normally run an external script in th4 same process. YOu can yse the "ScriptConrtol" object to manuall run and access a script file as a loiaded module however this is a fairly advanced technique...
by jvierra
Sun Jul 08, 2007 3:06 am
Forum: VBScript
Topic: CScript vs WScript
Replies: 14
Views: 14183

CScript vs WScript

shell.run "cscript.exe """ & Wscript.ScriptFullName & """", 0 , true No window and wait for execution to end. To override execution environment defaults settings use command line switches with "cscript". CSCRIPT //NOLOGO //B ... etc. Type cscript /? at prompt for all options. Don't use the //H optio...
by jvierra
Fri Jul 06, 2007 2:46 pm
Forum: VBScript
Topic: MS Access SQL Query script
Replies: 13
Views: 8103

MS Access SQL Query script

You have to have MSAccess installed on the machione you are running this on.
by jvierra
Fri Jul 06, 2007 8:37 am
Forum: VBScript
Topic: MS Access SQL Query script
Replies: 13
Views: 8103

MS Access SQL Query script

YOu need to read something about how to write a script. YOu have the function inline but you are not calling it. I suggest getting some basic informatipon about scripting before you continue. Got to this link and study the material. It will help you see what you have missed I believe. http://www.scr...
by jvierra
Fri Jul 06, 2007 6:52 am
Forum: VBScript
Topic: SendKeys WindowsKey ?
Replies: 1
Views: 3385

SendKeys WindowsKey ?

Generally teh "Windows" key is mapped to shell functions. Look into using direct calls to teh shell methods for things like "LogOff" and other menu and utility functions.

by jvierra
Fri Jul 06, 2007 6:39 am
Forum: VBScript
Topic: MS Access SQL Query script
Replies: 13
Views: 8103

MS Access SQL Query script

Look into the "Export methods. TransferSpreadsheet and the others like it. Sub ExportToExcel(filename, queryname)     App.DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel3, queryname, filename, True End Sub For the above you either need to make the "App" object global to the file or only u...