Thanks for your reply PHV, I've been looking at that document for a while but I'm still having problems.
....
Agreed tsuji, I should have made a compilation of what I recieved from the other forum, but I was in a hurry when I made this post. I will go back and do that shortly....
In the...
Okay guys, this is my first post, but I've used info from these forums in the past and you guys kick ass!
Here is my question:
I have a logon script that maps drives and printers, and I want make certain that the passed server references are FQDNs. So, I need a way to take a string and see if...
Hey guys, thanks for the help...
Actually, I think I'm posting this in the wrong forum. I'm using VBSCRIPT, not VB for applications.
I noticed because I can't use the "As" statement like the code above (I get an "Exspected End of Statement" error).
So, I guess I'm going to repost this stuff...
I tried to run this code without alteration. It fails. I get a "Type Mismatch" error on this line:
If ((Not (a)) = -1) Then
This is the same error I was struggling with using tsuji's code...
Okay, I've been working on this code for a little while and trying to integrate it into my program. But, I have some problems. Read the coments for clarification:
Function TestFQDN(this_server)
Wscript.Echo "TestFQDN Called!"
' this_server is the server name portion of a UNC
' path...
Hey, thanks tsuji!
This works to check the labels, but it does not go so far as to check if the entire string is a valid FQDN. For instance it doesn't check to see if there are at least 3 labels (like "a.b.c" ... while "a" is a valid label, it is not an FQDN by itself). I guess if the "a"...
Okay guys, this is my first post, but I've used info from these forums in the past and you guys kick ass!
Here is my question:
I have a logon script that maps drives and printers, and I want make certain that the passed server references are FQDNs. So, I need a way to take a string and see if...
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.