vbscript

wscript.exe stopped working with a custom protocol

半腔热情 提交于 2020-01-24 22:04:51
问题 All the computers in our company are configured with a custom protocol that runs a vbs script, so when you click on a link with that user protocol, the vbs script starts and performs operations that interact with the file system and applications otherwise inaccessible to the browser. This is the .reg file used to register the protocol: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\<name>] "URL Protocol"="" @="Url:<Description>" "UseOriginalUrlEncoding"=dword:00000001 [HKEY_CLASSES

display Image with no border before starting an app,exe file?

喜你入骨 提交于 2020-01-24 20:30:08
问题 ok so some tools , some converting tools, give the ability to display an image before starting the converted application, and after done ! that is something very interesting i definitely want to know about, so the question is this : how can you -using vbs,js,html,hta,css...- display an image (basically not in default windows image viewer you know what i'm talking about) ? i first tough it's hta with that image as a background and no border but after trying it the image still have small

Outlook VBscript to forward emails in a folder

流过昼夜 提交于 2020-01-24 15:12:06
问题 I have a specific user that really wants to be able to redirect any email to other people in their department so that when that person replies to the email it will go back to the person who originally sent it. We can't give them permissions to send as everyone because not all users are internal so I am trying to make a VBScript to run in Outlook that will send forward all emails in a specified folder but change the reply address so that they don't have to manually put it in every time. I'm

VB script error path Path not found(800A004C)

让人想犯罪 __ 提交于 2020-01-24 12:55:07
问题 I need to create vbscript which will create new folder 'test' and subfolder 'Output'.There is already a folder structure C:\Documents and Settings\All Users\Application Data\Fmwire,I need to create test\Output under those structure I have created vbscript like this but i am getting error like this Error: Path not found Code: 800A004C Source: Microsoft VBScript runtime error Const OSCPATH = "\Fmwire\test\Output" Const ALL_USERS_APPLICATION_DATA = &H23& Dim fso ' File System Object Dim

VB Script to dump an SQL Server table to CSV

坚强是说给别人听的谎言 提交于 2020-01-24 00:38:32
问题 I try to make a VB script to dump an SQL server table to a CSV file Option Explicit Dim rs,fieldVals,dbConnIn Dim connectString,shell,tmp,fso,ts,line Const adOpenDynamic=2 Const adLockPessimistic=2 Const adCmdTable=2 Const adOpenForwardOnly=0 Const adOpenStatic=3 Const adLockReadOnly=1 connectString="Provider=SQLOLEDB;Server=192.168.168.4;Database=MYDB;Uid=sa;Pwd=myPassword;" Set dBConnIn = CreateObject("ADODB.Connection") dBConnIn.CommandTimeout = 300 dBConnIn.Open connectString ' This is

Validation for Form and QueryString in ASP Classic using Regex. Almost working but missing something?

荒凉一梦 提交于 2020-01-23 13:30:13
问题 I'm trying to add some Input Validation in Classic ASP by using the function/code seen below. The only one that looks like it's working correctly is the "text" type. the others I keep getting errors or it just does not filter correctly. I'm trying to understand what I'm doing wrong please help me. Valid Data Types: "email", "integer", "date", "string" and "text". The first three are obvious, the last two have slight differences. The " email " should only allow numbers and leters, and the

Classic ASP Twitter Libraries [closed]

大憨熊 提交于 2020-01-23 11:08:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Does of anyone know of any Classic ASP (VBScript) Twitter libraries? Thanks. 回答1: http://scottdesapio.com/VBScriptOAuth/ Not a twitter library but rather a true VBScript OAuth interface. That help? 回答2: Made one in VbScript as well http://sitejunction.awardspace.com/vbscript_tweets/ 回答3: I write my own Twitter

VBScript to split a text file into multiple files based on a variables that needs to be set from file contents

对着背影说爱祢 提交于 2020-01-23 03:30:50
问题 I am hoping that someone will be able to help me out, basically I have a text file that I need to split based on a variable that will be contained within the file….. I have added below an example of how the source file would look… What I need to do is ignore the header and footer and then split the file in to separate files based on the second delimiter so for the first row this would be “1001” the files should group all of the matching references into the file and then apply a header and

VB GUI Interface to run VBS Script

纵饮孤独 提交于 2020-01-23 01:29:24
问题 I have a VBS script which I need to run on a monthly basis which captures file information suhc as file Name, Type, Date Modified and more. When I processes each file it saves it all onto a CSV file so that I can process it on Excel. To run the script I setup a batch file .bat The issue is I need a GUI interface of some sort so that when the batch or vbs file is run it will ask the user to enter a drive letter to scan. This is the code I have: test.vbs: Option Explicit Dim objFS, objFld Dim

Run a command and capture the output in vbscript

被刻印的时光 ゝ 提交于 2020-01-22 03:41:08
问题 I am trying to run the following command and return the output of it using VBscript: dir /A-d "C:\Windows\Minidump" | find /c "/" And I have the following script but it does not work (probably because of " charachters: Wscript.Echo runCMD("dir /A-d "C:\Windows\Minidump" | find /c "/"") Function runCMD(strRunCmd) Set objShell = WScript.CreateObject("WScript.Shell") Set objExec = objShell.Exec(strRunCmd) strOut = "" Do While Not objExec.StdOut.AtEndOfStream strOut = strOut & objExec.StdOut