Date: Tue, 21 May 2013 11:11:40 +0200
Quote:
- The Official Scripting Guys Forum! Forum (recent threads)
[VBscript] How to read a file and create a variable?
http://services.social.microsoft.com/feeds/FeedItem?feedId=00000000-0000-0000-0000-000000000000&itemId=fe2a9230-e577-4c17-81d6-9b24c8f8b7b3&title=%5bVBscript%5d+How+to+read+a+file+and+create+a+variable%3f&uri=http%3a%2f%2fsocial.technet.microsoft.com%2fForums%2fen-US%2fITCG%2fthread%2ffe2a9230-e577-4c17-81d6-9b24c8f8b7b3%2f&k=oEmKduNS%2fIQy85NCQB%2fZMbLz9LgJCzndDwXA0KsZH48%3d
Text:
Hi all,
I want to create a VBscript which reads lines from a file and create a variable for the printer line called & Printer or what so ever. Below you can find an example of my file.
[Preferences]
LastExitOption=LOGOFF
OutlookNoOpenDialog=|
Printer=\\PrintServer\PrinterName
My variable & Printer should only contain the printserver and printerName (\\PrintServer\PrinterName).
Hope someone can help me!
Dynares Groep B.V.
Via FeedShow.com