vbscript Questions

3

Solved

So I have a possibly simple question that I can not find the answer to. I am writing a VBScript that will move a subfolder from one folder to another. When moving I want to append the date onto th...
Helminthic asked 22/7, 2011 at 15:14

2

Solved

I have a batch file which in turn calls VB Script. The task of the VBScript contains a macro whose job is to login into the Oracle db, run few queries, fetch the output in Excel sheet and then it p...
Igenia asked 4/2, 2019 at 13:8

5

Solved

I have a VB Script that opens an Excel file and runs a macro. I am trying to close this excel file(without saving any changes) without being prompted to save. I have set the 'Saved' property to tru...
Maharani asked 7/1, 2014 at 18:32

7

Solved

Is there any way to align text into the center in msgbox in VB or VBA? Does VB have any functionality to do the same?
Leavings asked 3/2, 2012 at 15:24

8

I have a ASP application. On click of a particular link, some VB scripts are executed and an ASP page is to be shown, but instead I get a screen that says: Information Not Available. The reques...
Trici asked 17/1, 2012 at 9:26

5

Solved

I'm not even sure where to start with my question, I tried a hundred things and googled for hours but didn't find anything useful. (I'm open to every dirty trick.) Here's my problem: I have a .hta-...
Tacit asked 4/2, 2016 at 15:54

6

Solved

I would like to check whether the context in which my VBscript runs allows me to perform administrative tasks. Requirements: The solution should work on all Windows operating systems starting wi...
Insulin asked 21/10, 2009 at 8:59

5

Solved

Every day we get a flat text file. Some days there are lines in the file that need to be deleted before it can be processed. These lines can appear in different places, but always start with the ch...
Flieger asked 22/6, 2010 at 21:15

3

Solved

I'm having a problem with Spanish characters in a classic asp site. A user is able to submit their name/address in a form on an aspx page. The aspx page then does an ajax post to a classic asp page...
Atronna asked 22/8, 2012 at 23:40

8

Solved

I thought this would be easy, but apparently nobody does it... I'm trying to see if a registry key exists. I don't care if there are any values inside of it such as (Default). This is what I've be...
Needlecraft asked 7/3, 2012 at 15:27

4

Solved

I have written an automated test that runs each night, and I would like to email the results each night once the test is finished. In order to do this I attempted to put the following at the end o...
Parris asked 12/8, 2011 at 14:54

4

Solved

I'm writing a VBScript that sends out a weekly email with client activity. Here is some sample data: a b c d e f g 2,780 2,667 2,785 1,031 646 2,340 2,410 Since this is email, I don't want a cha...
Specious asked 4/6, 2015 at 14:57

3

We're currently changing our mail delivery system to use solely UTF-8. There seems to be a problem with the sender name, when the email contains non ASCII chars (hebrew) the subject & body ren...
Hilmahilt asked 11/12, 2014 at 10:3

2

Solved

I have a text file saved as UTF-8 and when I try to read the file it gives me weird characters and not the correct characters (it contains Chinese characters). How can I make it give me the correct...
Papilla asked 13/12, 2012 at 1:19

20

Solved

I'm writing a Windows batch file and want to copy something to the desktop. I think I can use this: %UserProfile%\Desktop\ However, I'm thinking, that's probably only going to work on an Engl...
Strawflower asked 4/1, 2010 at 16:40

5

Solved

Is there ways to create optional arguments to functions in vb script allowing you to write functions something like... myFunc("happy") myFunc("happy", 1, 2, 3) myFunc("happy", 1) etc.
Advisedly asked 11/12, 2009 at 15:44

6

How can I copy a file from one folder to another using VBScript? I had tried this below one from the information provide on the internet: dim filesys set filesys=CreateObject("Scripting.FileS...
Runge asked 11/8, 2009 at 14:31

4

All I want to do is differentiate between the program being run by the command line or by clicking the test.vbs file in a window. If you run the script by typing C:\testFolder\test.vbs in a comman...
Unpremeditated asked 31/12, 2010 at 18:56

8

Solved

I need to write some scripts for WinXP to support some of the analysts here at Big Financial Corp. I need to decide which type of Windows scripting best fits my needs. My needs seem pretty simple (...
Glasser asked 2/10, 2009 at 19:11

10

I have to extract the integer value from a string. Its actually an amount field. Say string can be 000000000000512 or 0000040000000 I want only the integer value from this string i.e.; 512/ 400000...
Brinkema asked 25/2, 2014 at 10:33

1

Solved

I am running an old VB6.0 program in interpretive mode (i.e. not as a .exe) on Win-7 32-bit. The program accesses VBScript via an MSScriptControl.ScriptControl (as illustrated in the code block bel...
Vocational asked 19/10, 2023 at 12:12

8

Solved

Need a function that will accept a filename as parameter and then return the number of lines in that file. Should be take under 30 seconds to get the count of a 10 million line file. Currently ha...
Glutinous asked 14/9, 2011 at 12:46

3

Solved

I am trying to call my excel macro using vbs. Here is a snippet of my code. Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open("C:\Folder\Test_PO.xls") obj...
Virg asked 10/5, 2012 at 8:37

10

Solved

How do i detect the bitness (32-bit vs. 64-bit) of the Windows OS in VBScript? I tried this approach but it doesn't work; I guess the (x86) is causing some problem which checking for the folder.. ...
Knuth asked 27/8, 2010 at 11:16

17

Solved

It happens to the best of us. Particularly when dealing with languages without built in debugging capabilities such as breakpoints and watched variables, these bugs bite developers. Debugging co...
Scandinavia asked 9/12, 2010 at 15:34

© 2022 - 2025 — McMap. All rights reserved.