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...
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...
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...
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
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?
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.
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
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.