vbscript

How can I send a command to another VBScript? [duplicate]

瘦欲@ 提交于 2021-01-20 13:57:40
问题 This question already has answers here : Can I pass an argument to a VBScript (vbs file launched with cscript)? (5 answers) Closed 13 days ago . I need help rendering input through 2 different VBScripts. Here's my code, but I need a way of rendering the input of A.vbs into B.vbs, here's my code: Option Explicit Dim Shell Set Shell = CreateObject("WScript.Shell") Speed = InputBox("How long do you have to wait between clicks, in seconds?", "") Wait = InputBox("How long until this script runs?",

How can I send a command to another VBScript? [duplicate]

牧云@^-^@ 提交于 2021-01-20 13:57:15
问题 This question already has answers here : Can I pass an argument to a VBScript (vbs file launched with cscript)? (5 answers) Closed 13 days ago . I need help rendering input through 2 different VBScripts. Here's my code, but I need a way of rendering the input of A.vbs into B.vbs, here's my code: Option Explicit Dim Shell Set Shell = CreateObject("WScript.Shell") Speed = InputBox("How long do you have to wait between clicks, in seconds?", "") Wait = InputBox("How long until this script runs?",

Unzip a password protected file in vbsript

旧城冷巷雨未停 提交于 2021-01-20 13:39:31
问题 i am facing a trouble here,Could you please tell me how to unzip a password protected field in vbscript? I have a code which runs perfectly,but it asking password each time when it runs pathToZipFile="C:\folder.zip" extractTo="C:\" set sa = CreateObject("Shell.Application") set filesInzip=sa.NameSpace(pathToZipFile).items sa.NameSpace(extractTo).CopyHere(filesInzip) I need a code which will not ask password in run,Please help,Thank you!! 回答1: AFAIK the Shell.Application object doesn't support

Unzip a password protected file in vbsript

孤者浪人 提交于 2021-01-20 13:38:05
问题 i am facing a trouble here,Could you please tell me how to unzip a password protected field in vbscript? I have a code which runs perfectly,but it asking password each time when it runs pathToZipFile="C:\folder.zip" extractTo="C:\" set sa = CreateObject("Shell.Application") set filesInzip=sa.NameSpace(pathToZipFile).items sa.NameSpace(extractTo).CopyHere(filesInzip) I need a code which will not ask password in run,Please help,Thank you!! 回答1: AFAIK the Shell.Application object doesn't support

Stop ASP script auto-running on page load

天大地大妈咪最大 提交于 2021-01-20 12:46:52
问题 I'm having a problem here. I've created a page for adding records into a database, it's working fine however the asp script is running every time the page loads, inputting a blank record to the database each time the page is loaded, this is very annoying as it messes with other scripts I have. I feel I am being very stupid but all I need is for the script to run only once the submit button has been clicked, how do I get it to do this? <!DOCTYPE html> <html> <title> Teacher Registration <

CopyHere not working as expected when copying fonts

Deadly 提交于 2021-01-20 12:09:05
问题 I made a script, which is supposed to copy a bunch of fonts to the Windows font folder. When I run it, I receive the output of the file names I would like copied, but nothing copies. It works when I remove the For loop, and specify file names. Any help appreciated. Const FONTS = &H14& sFolder = "c:\FontInstalls\" Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(FONTS) Set objFSO = CreateObject("Scripting.FileSystemObject") For Each oFile In objFSO.GetFolder

File checking on Windows Startup is failing [duplicate]

岁酱吖の 提交于 2021-01-19 09:01:36
问题 This question already has answers here : Getting current directory in VBScript (7 answers) Cannot get the current directory in .vbs file [duplicate] (1 answer) Closed 16 days ago . I have this script that allows me to automatically backup my MySQL Database every 5 minutes using a batch file. Dim WshShell Dim FSO Dim stopBackup stopBackup = false ' Register on Windows Startup if not registered when this file is opened. RegisterOnWindowsStartUp() ' Keep backing up the database every 5 minutes,

File checking on Windows Startup is failing [duplicate]

眉间皱痕 提交于 2021-01-19 09:01:24
问题 This question already has answers here : Getting current directory in VBScript (7 answers) Cannot get the current directory in .vbs file [duplicate] (1 answer) Closed 16 days ago . I have this script that allows me to automatically backup my MySQL Database every 5 minutes using a batch file. Dim WshShell Dim FSO Dim stopBackup stopBackup = false ' Register on Windows Startup if not registered when this file is opened. RegisterOnWindowsStartUp() ' Keep backing up the database every 5 minutes,

Cannot get the current directory in .vbs file [duplicate]

自古美人都是妖i 提交于 2021-01-07 03:05:27
问题 This question already has answers here : Getting current directory in VBScript (7 answers) Closed 4 days ago . I write a Visual Basic Script to execute an Excel Macro. I want to set the location of .xlsm file dynamically. I use FileSystemObject to get the current directory. It returns C:\Windows\System32 but I need the directory where the .vbs file is located. I tried to get the current directory with FileSystemObject and WScript without success. ' Create a FileSystemObject to get the current

Cannot get the current directory in .vbs file [duplicate]

十年热恋 提交于 2021-01-07 03:03:30
问题 This question already has answers here : Getting current directory in VBScript (7 answers) Closed 4 days ago . I write a Visual Basic Script to execute an Excel Macro. I want to set the location of .xlsm file dynamically. I use FileSystemObject to get the current directory. It returns C:\Windows\System32 but I need the directory where the .vbs file is located. I tried to get the current directory with FileSystemObject and WScript without success. ' Create a FileSystemObject to get the current