Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


help vbs script

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,61398
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> help vbs script
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 help vbs script - 6/15/2008 11:22:19 PM   
  book

 

Posts: 3
Score: 0
Joined: 6/15/2008
Status: offline
Hi all
I need a .vbs that returns a list (.txt file format) of the names of all the printers on a computer.
thanks advance
Ric

I am sorry for my English.
 
 
Post #: 1
 
 RE: help vbs script - 6/16/2008 12:12:11 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
What have you written so far? We are here to help you write a script. Not to write it for you.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to book)
 
 
Post #: 2
 
 RE: help vbs script - 6/16/2008 12:30:44 AM   
  book

 

Posts: 3
Score: 0
Joined: 6/15/2008
Status: offline
I am sorry, I am a vbs beginner and I don't speak very well English.
Can you help me?
Ric

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: help vbs script - 6/16/2008 12:47:49 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
I can help you. I will not do it for you.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to book)
 
 
Post #: 4
 
 RE: help vbs script - 6/16/2008 1:05:33 AM   
  book

 

Posts: 3
Score: 0
Joined: 6/15/2008
Status: offline
thanks

Set objNetwork = WScript.CreateObject("WScript.Network")
Set colPrinters = objNetwork.EnumPrinterConnections
For i = 0 to colPrinters.Count -1 Step 2
Wscript.Echo strNextLine, colPrinters.Item(i) & vbTab & colPrinters.Item (i + 1)
Next

the result in a .txt file...I don't know how do it.

Ric

< Message edited by book -- 6/16/2008 1:09:11 AM >

(in reply to ebgreen)
 
 
Post #: 5
 
 RE: help vbs script - 6/16/2008 1:23:49 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Search the forum for these terms:

FileSystemObject
CreateTextFile
OpenTextFile
WriteLine

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to book)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> help vbs script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts