ok... here is an example..
I have a script that is something like this:
call main
function main
a = 1
msgbox ("A = " & a) ' and this would show A = 1
call nextone
function nextone
msgbox ("A = " & a) ' now, this shows A =
end function ' with A no longer having a value.
is...
I tried it, but it still does not appear to be working... I am, however, setting whenwhen to equal the date and time variables like so:
whenwhen = ("" & whenday & " " & whentime & "")
dtMyFinalDate = CDate (whenwhen)
I just need to get the whentime and whenday together somehow.
Excellent call on the validation... However, I am getting an error with the cDate:
Type mismatch: 'CDate'
Code: 800A000D
VB Runtime error
Here is the new code, I also added functions out thew wazoo to control moving around in the script. Im a noob :]
' developed by Mike KOvacic
' Remedy...
Your method would cache the credentials the same as though it was being mapped manually. You are better off taking the logon script route, so if any users have trouble with the mapping,they can just reboot their machines and it would come back.
Greetings... Im having trouble getting a vbscript to add a calendar item to outlook.. the variable "whenwhen" actually equals out to a date, but is made of other variables like the following:
whenwhen = ("#" & whenday & " " & whentime & "#")
when you look at the value, it comes out to this...
Hi Mark.. I found the resource, and I found samples to do the following things:
1. Disconnect network drives
2. Map network drives
3. Map network drives based on a group membership
4. Disconnect network printers
5. Connect network printers
6. Set the default printer
7. Modify the registry
8...
I am really perplexed by this one.... I am using IE8, (if I could find the uninstaller, I would go back to 7) and I have a flash movie on my page that has links. The flash movie is my Nav bar, and when you click on a link, it opens in a new window, even though I have the target as _self. I have...
Thank you very much!! Excellent resource...
I have a script to add if you like.. It is for VPN users, It runs the login script once a user has connected to the company network..
Make sure you change the IP at: strHost = "10.11.1.110"
to your company intranet. I made this because we have...
We are undergoing a complete IP change, and we have many users mapped to many different printers..
I am trying to make a script that looks for TCP/IP ports printers are attached to, and replace them with another IP based on an external file... Here is the logic I am working with:
Use with CSV...
Hello all.
Simple question. I have multiple users that know the IE6 interface, and are comfortable with it, and truly don't want to change. I was wondering if there was a way to make IE7 or 8 look almost exactly like IE6. Mostly placement of toolbars, shut off tabs, have the google toolbar...
For some reason, the script would'nt run the otherway. It brought up a DOS windo and closed it right away. This was a method I used to open any filetype without having to specify what executable runs it.
It looks like it is able to detect the LogonScript, but it wont run it... I have tried several methods.. here is where I am so far.
'On Error Resume Next
strComputer = "."
Dim objNet,runme,x
Set objNet = CreateObject("WScript.NetWork")
strUserName = objNet.UserDomain & "\" &...
EXCELENT!!!
This is what I am looking for!!
I will combine this, to another script which should be fired off the VPN client..
What I am hoping it will do is run quietly, once a user tries to connect to the VPN. It will check every 5 seconds for a full minute for the IP to change to 10.n.n.n...
Hello all.. I am looking to create a VBS file that can fire off a users log on script. I am looking to find out what process launches the windows start up script (to what is specified in Active directory) on their computer, because I want to call it from a script. Is anyone familiar with this...
Hello all.. I am looking to create a VBS file that can fire off a users log on script. I am looking to find out what process launches the windows start up script (to what is specified in Active directory) on their computer, because I want to call it from a script. Is anyone familiar with this...
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.