Search found 14142 matches

by jvierra
Mon Jul 23, 2007 6:39 am
Forum: VBScript
Topic: Get the number of files in a folder
Replies: 6
Views: 5007

Get the number of files in a folder

Outlook automatically deletes files in teh temp folder when it is finished with them. YOu aer either infected or Outlook needs to be repaired. In my installation teh folder is, D:Temporary Internet FilesOLK4A because I have relocat4ed teh temp internet folder. The Outlook security folder only exeist...
by jvierra
Mon Jul 16, 2007 3:05 am
Forum: Other Scripting Languages
Topic: Pop Up Confirm Window
Replies: 4
Views: 6724

Pop Up Confirm Window

In an HTA yo can use the MsgBox function and set it's properties to display "yse,No,Cancel" and many othger buttons. This is the easiest method in eoither vbscript or jscript.

See vbscript documentation for a complete list of options for "MsgBox"

by jvierra
Thu Jul 12, 2007 10:30 am
Forum: VBScript
Topic: Strange result...
Replies: 4
Views: 2450

Strange result...

Remove this - On Error Resume Next


YOu wilkl probably see why you are failing.

You should ping first.
by jvierra
Thu Jul 12, 2007 7:53 am
Forum: VBScript
Topic: Having Some Strange Problems with My Script
Replies: 3
Views: 2321

Having Some Strange Problems with My Script

Log into McAfee with your grant number.
by jvierra
Thu Jul 12, 2007 4:25 am
Forum: VBScript
Topic: Having Some Strange Problems with My Script
Replies: 3
Views: 2321

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: 10539

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: 1304

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: 14648

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: 14648

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: 14648

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...