VBScript Functions Questions

1

I am New to vb scripting. Need help to create a script to read registry
Dear Experts, I am New to vb scripting. I need help to create a script. I need to create a login script that maps user DFS network drive accordingly to their department. The login is as follows: a. to read registry of last logon user b. get last logon user AD group information c. if [...]

Answer Question   |  December 17, 2012  2:03 AM
VBScript Functions, Windows 2003 AD, Windows 7
asked by:
10 pts.

Reading a value from HKLM registry and writing it HKLM registry
I require a VBScript which will read a value from HKLM and then after reading that value That VBScript should write that value to HKLM. Any help is much appreciated

Answer Question   |  December 4, 2012  7:21 PM
VBScript, VBScript Functions
asked by:
10 pts.

Instring function using vbscript
how to extract the comma till the last and display only the last value suppose if i insert 100000 rows it should show 100000 not like from 1,2,3, till 100000 it should extract till last comma please help me

Answer Question   |  June 15, 2012  2:30 PM
VBScript, VBScript Functions
asked by:
5 pts.

Set Page orientation
Can anyone help identify how to set the Page Layout Orientation of an XLSX file in VBS?  I am using the below script example for reference. Set obj = CreateObject("Excel.Application") Set objWorkbook = obj.Workbooks.Open("C:pathtest.xlsx") obj.ActiveSheet.PageSetup.Orientation = xlLandscape obj.ActiveWorkbook.Saveas "C:pathtest.xlsx" obj.ActiveWorkbook.Close Thank you.

Answer Question   |  March 21, 2012  3:35 PM
VBScript, VBScript Functions
asked by:
210 pts.

Autoprint to PDF Printer
Does anyone know if there is a script (VBS, BAT or otherwise) that will send a requested file (xls, doc, txt) to a local installed PDF printer and render it without user intervention?

Answer Question   |  March 20, 2012  2:30 PM
VBScript, VBScript Functions
asked by:
210 pts.

VBS output to text
How do I change this code to: instead of poping up a window, to output the results to a text file? ”create a connection object set connObj = CreateObject(“ADODB.Connection”) ”create a command object set cmdObj =   CreateObject(“ADODB.Command”) ”set the properties connObj.Provider = “ADsDSOObject” connObj.Open “Active Directory Provider” set cmdObj.ActiveConnection = connObj cmdObj.Properties(“Page Size”) = 25 [...]

Answer Question   |  March 5, 2012  10:30 PM
VBScript, VBScript Functions, VBScript Statements
asked by:
210 pts.

function block calculation module
Hello, I would like to know how to read this code and what the outcome would be. its writtin in a calculation function block which typically includes IF-THEN-ELSE, DO-WHILE, etc. statements. out1 := (in2 = 0) ? 0 : ((in1 & in3) > 0); of course in1/2/3 are the inputs, out1 is the output. Is [...]

Answer Question   |  October 17, 2011  12:07 AM
Calculating fields, VBScript Functions, VBScript Statements, Visual Basic, Visual Basic Script
asked by:
15 pts.

help with a vbscript to copy files to a remote computer and overwrite a file if it is already there…
I already have the script to copy the files over and it is working on my local pc. All pc’s are on the same domain. Set FSO =CreateObject(“scripting.FileSystemObject”) FSO.CopyFile “\SAN1Files*”, “c:Metatr~1″ ,True

Answer Question   |  May 18, 2009  5:27 PM
VBScript, VBScript Functions
asked by:
15 pts.

VB Script question
why doesn’t the statement if (thres_PrivateBytes > cur_PrivateBytes) work properly? it was working when I had the WMI data type as Real32 and now it’s UINT32 because I didn’t have a conversion from scientific notation to decimal. Anyway, do I need to declare the vars as integers? my theory is that either one of the [...]

Answer Question   |  August 12, 2008  9:34 PM
VBScript, VBScript Functions
asked by:
5 pts.

1