Quantcast
Channel: VBForums - ASP, VB Script
Browsing all 688 articles
Browse latest View live

JScript to search for specific outlook emails, and download attachments

Hi, I just ported this from our VBScript version to Jscript. More for fun, than anything else. Code: ' /* '        Search for and Download daily email attachment '      Get_Attachment_from_Email.wsf '...

View Article


New to VBScript - VS 2022 for editing/debug

I'm new to VBScript and want to use VS2022 for my editing/debug. I have been using VB, .NET, VS and others on and off for 30 years. Now I want to automate my backup of Outlook for me and my wife every...

View Article


Stop / Starting Outlook via VBScript

I can STOP Outlook nicely, but why is it so damn hard to get it up running again ! This snip of code says Outlook is already in use .... and it is NOT - I've seen it stop by stepping through the code !...

View Article

[RESOLVED] Missing Dim ??

I try start Outlook with this codesnip: Code:     Dim oShell     oShell.run "cmd.exe /C ""C:\Users\kelds\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Outlook"" " 'Outlook' id a shortcut. This...

View Article

[RESOLVED] Stop / Starting Outlook via VBScript

I can STOP Outlook nicely, but why is it so damn hard to get it up running again ! This snip of code says Outlook is already in use .... and it is NOT - I've seen it stop by stepping through the code !...

View Article


[RESOLVED] New to VBScript - VS 2022 for editing/debug

I'm new to VBScript and want to use VS2022 for my editing/debug. I have been using VB, .NET, VS and others on and off for 30 years. Now I want to automate my backup of Outlook for me and my wife every...

View Article

Background Task in Classic ASP

I am building a project using Classic ASP (mainly because I already have a lot of stuff written in Classic ASP over the years) on a shared hosted server I need a simple way of running something in the...

View Article

how to use Arguments while dedugging in VS2022

How can I enter the argument when I'm still working in the editor VS2022 and debugging this simple VBScript: Code: Option Explicit Dim strMAddress Set colArgs = WScript.Arguments strMAddress =...

View Article


Background Task in Classic ASP 11

I am building a project using Classic ASP (mainly because I already have a lot of stuff written in Classic ASP over the years) on a shared hosted server I need a simple way of running something in the...

View Article


Forcing Wscript.StdOut.Write to write over the same position

Hi all, I´m trying to show a records read counter on the console, but on the same position, like: Code: For i = 0 To numRecords-1     WScript.StdOut.Write  " & i & " records read" next Is it...

View Article

How can I overcome a permissions issue with my VBScript?

Back in 2018 I wrote a vbscript to start a service if the service was stopped. Back then I had this run as a scheduled task at specific time but decided to remove if from scheduler and run it manually...

View Article

How to validate an INSERT, after Executing

Hi, I have Code: Set cn = CreateObject( "ADODB.Connection" ) cn.Open "Driver={SQLite3 ODBC Driver};Database=c:\XXXXXXXX\XXXXXX\XXL_XX\MYPRODDB.db;" , and it connects fine, and runs queries. The INSERT...

View Article

Trying to script tabbing through fields

I have been at this for a while. It has been a while since I've used scripting languages, but trying to do one in VBscript and saving as a Windows Scripting File. I am basically trying to open a...

View Article


[RESOLVED] Develop a Revision to ASP.NET Application

Several years ago, I developed an ASP.NET application, with VB.NET backend, using Visual Studio 2019. I use the application on MS Edge browser and it is only used within my home network. I would like...

View Article

Image may be NSFW.
Clik here to view.

Get pixel color by coordinates (PNG)

Dear VB developers, I used to think that it was impossible to get the pixel color by coordinates when we talk about PNG file, because Microsoft reported that this format is not supported by VBScript....

View Article


ASP Classic xlsx file connect and retrieve columns

Hi there, Is there any asp classic code to retrieve all the columns from a csv file, some columns are not required therefore I need to select only those columns I need to process the data; currently i...

View Article

How do I use the byte arrays returned from Read method of the ADODB.Stream...

The only way in VBScript to read data properly from a binary file is the ADODB.Stream object. Here's some code I have to read a file in the VBScript code of my ASP page. Code:         dim obj...

View Article


How to handle error in VBScript

Hi, In VBScript I have a issue at particular line if script crashes it should go to particular line with out using on error resume next command how can I resolve this issue. Thanks Sampath

View Article

How to close outlook from Task Schedular using VB Script

The VB Script code below check for an instance of outlook and close it if it is running before opening another instance of outlook and send the mail. It works fine when I tested it manually in QlikView...

View Article

VBScript fails

Hello, Not sure why the script fails on the marked line below. Code: sPath = "c:\tmp\" fln = sPath + "tmp.pptm" strExcelPath = sPath + "tmp.xlsm" Set objExcel = CreateObject("Excel.Application") '...

View Article
Browsing all 688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>