Repost to avoid confusion I created the .vbs file with following code DIM IE DIM ipf Set IE = CreateObject("InternetExplorer.Application") IE.navigate "http://zip4.usps.com/zip4/citytown.jsp" IE.Visible = True While IE.Busy WScript.Sleep 50 Wend Set ipf = IE.document.getElementByID("city") ipf.Value = "redmond" 'fill in the te... 6 May 2010 17:39
Web form fillup code not working Hi I tried putting the following code in a .vbs file and executed it, its bombing out with unspecified error in line 12, which is Set ipf = IE.document.getElementByID("city") What is wrong here, why is the code not working Thx rm wrote: Here is a script that I found and modified. 09-Jan-09 ... 6 May 2010 16:32
excel syntax Hi All, I am trying the following in vbscript... I keep having trouble with zoom and pagebreaks- what am I doing wrong- or what should i be doing? Dim xlapp Dim objWorkBook DIM XLWB Set xlapp = CreateObject("EXCEL.APPLICATION") Set objWorkBook = xlapp.Workbooks.Open("C:\test22.xls") Const xlLandScape = 2 x... 6 May 2010 14:17
Thanks Thank you very much. I will try it in a virtual vmware environment next week. I'll be back with the results, and, if it doesn't work, to ask for help. :-) Richard Mueller [MVP] wrote: You can use the NameTranslate object to convert sAMAccountName's 06-May-10 You can use the NameTranslate object to... 6 May 2010 10:48
Extract multiple cabs How can I extract msp files from cab files with VBS? I have 99 cabs. Each cab may have at least 1 or more msp files. I'm trying to edit an older script I used to qchain updates years ago, but getting "Expected end of statement" errors. That script is such a mess now, it's not even readable or worth posting... 6 May 2010 13:06
Rename user accounts Hi, Because of changes in my organization, I have been required to modify the UPN and prewindows2000 account name (samaccountname) for all the users within the domain (active directory Windows 2003). The present rules for user's UPN's and samaccountname is the first name, dot the surname. I.e, if a User is called... 6 May 2010 09:40
How to disable and enable my Local Area Connection using scripts if i write scrip already. where the path i can put it? *** Sent via Developersdex http://www.developersdex.com *** ... 6 May 2010 03:07
Excel pop3 issue Hi All, I am using a vbs to create an excel file from sql data, I then add and run a macro to format the excel, and then remove the macro using "xlbook.VBProject.VBComponents.Remove xlbook.VBProject.VBComponents("Module1") " in order to send the users a clean excel without the macro. When the user tries to down... 5 May 2010 17:10
CopyFile readonly Hello I'm coping a file, and if there is a existing file I delete it before the copy. I'm checking the read only attribute, because sometimes that may be set, so if it is set, I remvoe it. If (fso.FileExists("C:\myfile.bin")) Then Set MyFile = fso.GetFile("C:\myfile.bin") If (MYFile.Attributes And ... 6 May 2010 11:57
script to determine PC's IP subnet Hi, I am looking for some startup script that can detect PC's IP subnet. Thanks in advance. ... 5 May 2010 04:58 |