Click here to Skip to main content
15,923,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Regular Expressions: Something wrong Pin
Daniel Turini29-Jun-05 22:32
Daniel Turini29-Jun-05 22:32 
Generalload order Pin
btoyer27-Jun-05 9:47
btoyer27-Jun-05 9:47 
GeneralRe: load order Pin
Dave Kreskowiak27-Jun-05 10:28
mveDave Kreskowiak27-Jun-05 10:28 
GeneralRe: load order Pin
btoyer28-Jun-05 4:22
btoyer28-Jun-05 4:22 
Generalerror Pin
fatidarya27-Jun-05 8:54
fatidarya27-Jun-05 8:54 
GeneralRe: error Pin
Dave Kreskowiak27-Jun-05 9:09
mveDave Kreskowiak27-Jun-05 9:09 
GeneralRe: error Pin
StylezHouse27-Jun-05 9:11
StylezHouse27-Jun-05 9:11 
Generalcomplex mapping printers Pin
fozz7527-Jun-05 5:51
fozz7527-Jun-05 5:51 
I need some help mapping some printers, i have about 1000 computers with diffrent names for each section. I have about 15 sections of computers. I have about 3 printers in each section. I need to write a VB login script to map these printers to their section. i was tring somehow search for a string in the network computer name and then if it matches i want it to map the printer. heres what i have so far... any help will be greatly appreciated.




objNetwork = WScript.CreateObject("Wscript.Network")
Network = CreateObject("Wscript.Network")
compname = network.computername

Dim name As String


'stops it from mapping the printer twice
For Each strPrinter In objNetwork.EnumPrinterConnections
objNetwork.RemovePrinterConnection(strPrinter, True, True)
Next

name = kgwfd
if name.search(kgw) = true then map




If network.ComputerName = "KGWLIB-12.mayplace.org" Then
' "KGWLIB-12.myplace.org"
Network.AddWindowsPrinterConnection("\\keigbdc\hp4000ke")
Network.SetDefaultPrinter("\\keigbdc\hp4000ke")

' "KGWLIB-13.myplace.org"
Network.AddWindowsPrinterConnection("\\keigbdc\hp4000ke")
Network.SetDefaultPrinter("\\keigbdc\hp4000ke")
End If



end

End Sub
End Class

GeneralRe: complex mapping printers Pin
Dave Kreskowiak27-Jun-05 8:59
mveDave Kreskowiak27-Jun-05 8:59 
GeneralExporting Images From Word Pin
ironclads27-Jun-05 5:30
ironclads27-Jun-05 5:30 
GeneralRe: Exporting Images From Word Pin
Dave Kreskowiak27-Jun-05 9:03
mveDave Kreskowiak27-Jun-05 9:03 
GeneralRe: Exporting Images From Word Pin
ironclads27-Jun-05 13:11
ironclads27-Jun-05 13:11 
GeneralPictureBox: Open Image in default viewer Pin
Brad Fackrell27-Jun-05 4:14
Brad Fackrell27-Jun-05 4:14 
GeneralRe: PictureBox: Open Image in default viewer Pin
Dave Kreskowiak27-Jun-05 9:15
mveDave Kreskowiak27-Jun-05 9:15 
GeneralRe: PictureBox: Open Image in default viewer Pin
Brad Fackrell27-Jun-05 10:32
Brad Fackrell27-Jun-05 10:32 
GeneralRe: PictureBox: Open Image in default viewer Pin
Dave Kreskowiak27-Jun-05 11:57
mveDave Kreskowiak27-Jun-05 11:57 
GeneralRe: PictureBox: Open Image in default viewer Pin
Brad Fackrell27-Jun-05 11:58
Brad Fackrell27-Jun-05 11:58 
Generali want add combobox.item Pin
Attawat27-Jun-05 2:39
Attawat27-Jun-05 2:39 
GeneralRe: i want add combobox.item Pin
WillemM27-Jun-05 8:45
WillemM27-Jun-05 8:45 
GeneralDATA REPORT Pin
rngoyal27-Jun-05 1:17
rngoyal27-Jun-05 1:17 
GeneralSoapMapper:Restoring data into SoapMapper USR_RECORDING failed HRESULT=0x80070057: The parameter is incorrect. Pin
Nasir_mna27-Jun-05 0:39
Nasir_mna27-Jun-05 0:39 
GeneralCrystal Reports(.NET) forum Pin
Madni Abbasi26-Jun-05 23:53
Madni Abbasi26-Jun-05 23:53 
GeneralHelp me out Pin
kpr_psna26-Jun-05 23:50
kpr_psna26-Jun-05 23:50 
GeneralRe: Help me out Pin
Dave Kreskowiak27-Jun-05 1:03
mveDave Kreskowiak27-Jun-05 1:03 
GeneralRe: Help me out Pin
WillemM27-Jun-05 8:49
WillemM27-Jun-05 8:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.