18,580 questions
-4
votes
0
answers
226
views
Password don't match SAH512 encryption if password contains +, #, € or &
I use SHA512 to encrypt salt and password and save it in a MYSQL database.
The input salt+pwd gets hashed and saved successfully no matter the characters.
But if a password contains one or more of ...
-2
votes
1
answer
77
views
How to change locale for a vbs script?
I have a simple zip extracting vbs which I found on another stackoverflow page and used it
ZipFile="%CD%\file.zip"
ExtractTo="%CD%"
set objShell = CreateObject("Shell....
0
votes
0
answers
80
views
How to check if a process is suspended in VBS?
Edit: None, Status or ExecutionState are not implemented so I need an alternative way to check it, but I don't have any clue where I should look.
This is what I have:
Option Explicit
On Error Resume ...
-3
votes
1
answer
108
views
How can I calculate the difference between two time strings? [duplicate]
I'm trying to write a VB Script to call a subroutine at sunset (and sunrise) using data extracted from text files produced by my weather station software (Weather Display). I can extract the times OK ...
1
vote
1
answer
230
views
Can't get 7-zip to work via vbscript to calculate a CRC32 for a file with spaces in the filename
I'm in need to generate a CRC32 efficiently from within vbScript. I'm aware of doing this with CRC32 tables and so on, but this is very slow for large files. Therefore I'm using 7-zip.exe with option ...
2
votes
3
answers
180
views
Showing VBA macro output in a VBS script
I'm running a VBA macro through a VBS Script:
scriptDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName)
Set excel = CreateObject("Excel....
2
votes
1
answer
121
views
Create shortcut to batch file with "cmd /c" in VBScript?
I'm working on a VBScript to create a shortcut link to a batch file (the batch file downloads and launches a frontend Access database copy). The following code technically works but the shortcut link ...
0
votes
0
answers
109
views
vbScript to open multipe chrome windows and then tile them
I'm trying to open 4 separate chrome windows and then tile them on my screen when I double click a shortcut on my desktop.
this code works differently each time I run it. sometimes it works correctly,...
1
vote
1
answer
135
views
How to add a VBScript command that renames an Excel File with the previous workday's date to existing VBScript code [duplicate]
I already have a VBA string that is used by Task Scheduler to open a certain workbook "ORCA Refresh" every day. It refreshes all sheets then closes the document.
I need to add a command to ...
0
votes
1
answer
102
views
VBScript not setting variable inside If block [closed]
I'm working on a basic login check in VBS on Windows, just running from a .vbs file. I’ve been trying to set a loginSuccess flag based on a username check. It prints the welcome message correctly when ...
0
votes
1
answer
95
views
Moving files into folders based on their file name [closed]
I have been trying to figure out how to use VBScript to process files in a folder based on their names, create a couple of subfolders, and place the different files into the corresponding subfolders ...
0
votes
1
answer
104
views
VBS Script - Silent Command Line [closed]
Can Any one please help me out this. i can run this command but Message pops up 'Yes' or 'No' in Command line. How i can pass through this in command line silently. I need this to put in SCCM Task ...
0
votes
1
answer
73
views
No table to run vbs script to convert xlsx to tab delimited [duplicate]
I have a script that is supposed to convert xlsx files to tab delimited files in a folder. When I run it gives me a "excepted ')' at the following line by FileFormat
Call oWSH.SaveAs (oFile.Path &...
0
votes
2
answers
110
views
Retrieve only unique values from the string "20C:23B: 26G:67G:26G" using VBScript [duplicate]
I Have code delimited by ":" and I want to remove all the values that are appearing more than once and display only unique values.
This code is not giving me the right output.
strSourceBins=&...
0
votes
0
answers
77
views
VBS OpenText keeps returning an error message [duplicate]
I have this VBS code:
Dim txtFilePath
txtFilePath = WScript.Arguments(0)
Dim excelApp
Set excelApp = CreateObject("Excel.Application")
Dim workbook
Set workbook = excelApp.Workbooks....