Jump to content

LogischToch

Members
  • Posts

    4
  • Joined

  • Last visited

LogischToch's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hey, I need a method to resolve a ip-adress from an external computer. I use now a script that does a ping to another computer an capture the result in a text-files. (Something like ping computer>c:\ip.txt) It works only it's takes a second or two. _Getip can only resolve its own ip-adess and ping does return an ip-adress at all. Does anybody knows how to do this?
  2. How can i quickly resolve a ip-adres from a external PC? I use now something like this: runwait(@comspec & "/c ping -n 1 pcname>H:\temp.txt") , read the the output file en convert it to a ip-adres. It works, but only it takes an second or two. Has anyone a better idea? ??
  3. You can faster connect printers if you want. In our domain there are more then 30 printers on multiple location. I don't use de Windows DLL to connect the printers but importing 4 registry keys instead. Default printer: [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows] "Device"="\\servvername\PrinterShareName,winspool,Ne00:" PrinterPortnames: [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts] "PrinterName"="winspool,Ne00:,15,45" [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices] "Microsoft Office Document Image Writer"="winspool,Ne00:" [HKEY_CURRENT_USER\Printers\Connections\,,servername,PrinterSharename] "Server"="\\\\Servername" "Provider"="win32spl.dll" Printersettings are stored in HKEY_CURRENT_USER\Printers\Connections\DevModePerUser and HKEY_CURRENT_USER\Printers\Connections\DevModes2 Al works fine on Citrix en Windows terminal server. De only problem i have is when i use it in a logon script the defaultprinter in the script is overwritten by an old defaultprinter. Did not have an answer to that. I use it on multiple Citrix-server.
×
×
  • Create New...