![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jun 2008
Posts: 1
OS: XP
|
VBScript
Hi,
I have a ".vbs" file. The contents of this file are Set oISM = CreateObject("SAAuto12.ISWiProject") oISM.OpenProject "C:\Trunk\Installer\VOIP Client.ism" oISM.ProductVersion = "1.0.0" 'oISM.PackageCode = oISM.GenerateGUID() 'oISM.ProductCode = oISM.GenerateGUID() oISM.SaveProject oISM.CloseProject Set oISM = Nothing In this the Product Version in this script has to be taken by text file ".txt" the contents of which are are 1.0.0 How do I take it from the text file? Thanks, Sahana |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: VBScript
Hey Sahana,
So it creates a text file with the contents 1.0.0... is that all thats in the text file? I have limited knowledge of vbscript so excuse me if i go wrong anywhere... I think this is the sort of thing you need to do: Code:
dim fso, fileToGet, myfileStream, textToRead
set fso = CreateObject ("Scripting.FileSystemObject")
set fileToGet = fso.GetFile("c:\<the file path etc>")
set myFilestream = fileToGet.OpenAsTextStream (1)
set textToRead = myFileStream.readAll;
myFileStream.Close
Cheers, Jamey |
|
|
|
![]() |
| Thread Tools | |
|
|