Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by nerram

  1. nerram

    Disconnect drives based on the server they are mapped to

    Problem Solved Here is what I done: Set WshNetwork = WScript.CreateObject("WScript.Network") Set clDrives = WshNetwork.EnumNetworkDrives strServer = WScript.Arguments(0) For i = 0 to clDrives.Count -1 step 2 If UCase(strServer) = UCase(Left (clDrives.Item(i+1), Len(strServer))) Then...
  2. nerram

    Disconnect drives based on the server they are mapped to

    Not quite what I am looking for. I need the connection to be shut down based on the server it is connected to.
  3. nerram

    Disconnect drives based on the server they are mapped to

    Hi, I was wondering is there anyway to delete all drives mapped to a server. e.g see below drive server f:\ \\server1\share1 g:\ \\server1\share2 h:\ \\server2\share1 j:\ \\server2\share2 k:\ \\server1\share3 In this scenario I would like to...
  4. nerram

    dll's general question

    Why does it make no sense to link a COM dll?
  5. nerram

    dll's general question

    I have got a dll that someone else wrote. I need to use it. I was told it has COM Registration stuff. What are the implications with importing this dll into VC++? Plus I have released that my English isnt very concise and accurate when talking about dlls. Do you import a dll or link it or...
  6. nerram

    Location to the script?

    How do I find the location to a script? EG My Script is stored at c:\Projects\Scripts\MyScript.vbs I want the script to output its location ie c:\Projects\Scripts\MyScript.vbs But if it was stored at d:\MyScript.vbs it should output d:\MyScript.vbs
  7. nerram

    Run a .reg file

    not allowed to show you the reg file. But your reply has kinda answered my questions anyway.
  8. nerram

    Run a .reg file

    I made a mess of this question. So to start over : I have a .reg file that I need to install, I then need to some testing and finally I need to uninstall same .reg file. Uninstalling the reg file is where I am having problems. Is there a command line switch on regedit to uninstall a reg file?
  9. nerram

    Run a .reg file

    Sorry I forgot to mention i need it to uninstall a .reg file
  10. nerram

    Run a .reg file

    I need a Vbscript to run a .reg file silently but am having great difficulty in doing. Will I have to parse in the whole file. Any ideas?
  11. nerram

    The following is the contents of a

    I think the first hurdle is actually getting whats in the file into a single variable. I can change the way it is encrypted so there are no lines. I am still stuck as it only reads in the first three characters.
  12. nerram

    The following is the contents of a

    I need to decrypt the contents of the file so I need to get the contents into a variable do I not? The way I wrote the encryption was to put my username on line 1 and my password on line 2. Should I review the way I did this? What would be a better suggestion
  13. nerram

    More Fun With JavaScript....

    Is the impossible level really impossible?
  14. nerram

    The following is the contents of a

    The following is the contents of a text file I wish to read: P$öóŦ :mk ¨=EdQ°Ïºü­z³ÔqSM,Ý ‹RŒÇý${” It is the output of an encrpyion process. I am trying to read the first line into var1 and the second line into var2. When I try to read the file it only reads the first three characters. I...
  15. nerram

    VBScript Editor

    Yeah I have PrimalScript already but never new about the dim(ing) of myobj thing excellent tip. PrimalScript is the way to go then so.

Part and Inventory Search

Back
Top