Ahh more stupid posts by me..
I have Kixtart, but I don't want to use it for what I'm doing, unless I absolutely have to.
I'm looking for a program, or maybe just the command lines, to create a script/batch file that someone can click on to do the following:
Map drives to a local server: xxx-2000 where xxx is the 3 character identifier of the server, -2000 signifies if it's NT, 2000, 2003. (Don't ask, I came in after this crap was done)
Not using a domain, so there goes the easy fix.
I want to be able to pull the first 3 characters of the local computer name to determine where to map the drives.
ex: mau123 = maumee location, which would map to the maumee server, which doesn't have a xxx-2000 type name.
I was thinking a Case If, Then, Else statement? But how would I pull the first 3 letters of the computer name without getting intricate on myself by truncating or whatever other options are out there. I'm not a huge fan of programming since I took it in college and all the stupid crap they gave us.
Any suggestions would be helpful, otherwise I write something up in Kixstart or maybe write a small VB app to do it..
I'm really looking for something simple that if my other network people need to check the file out, they'll be able to understand it. Neither of them really understand programming and their understanding of the capabilites of login scripts/batch files is basic.
Once I know how to do the code to pull the computer name's first 3 chars, I can get a little more creative.
I have a few registry keys that I can pull the local computer name from..
Or if someone has a program that does this kind of stuff, pass that info along..
Thanks
Riser
I tapped a friend who got me started on writing a VBS file to do what I needed. Just a simple If, Then, Else statement. I wasn't aware of the variable that pulls the computer name. I was thinking I would do it via IP address, but if someone was in a different location, that'd be a problem.
Oh well.. problem solved. If anyone wants the code I used for this, let me know and I can post it.<P ID="edit"><FONT SIZE=-1><EM>Edited by riser on 04/20/05 04:49 PM.</EM></FONT></P>
I have Kixtart, but I don't want to use it for what I'm doing, unless I absolutely have to.
I'm looking for a program, or maybe just the command lines, to create a script/batch file that someone can click on to do the following:
Map drives to a local server: xxx-2000 where xxx is the 3 character identifier of the server, -2000 signifies if it's NT, 2000, 2003. (Don't ask, I came in after this crap was done)
Not using a domain, so there goes the easy fix.
I want to be able to pull the first 3 characters of the local computer name to determine where to map the drives.
ex: mau123 = maumee location, which would map to the maumee server, which doesn't have a xxx-2000 type name.
I was thinking a Case If, Then, Else statement? But how would I pull the first 3 letters of the computer name without getting intricate on myself by truncating or whatever other options are out there. I'm not a huge fan of programming since I took it in college and all the stupid crap they gave us.
Any suggestions would be helpful, otherwise I write something up in Kixstart or maybe write a small VB app to do it..
I'm really looking for something simple that if my other network people need to check the file out, they'll be able to understand it. Neither of them really understand programming and their understanding of the capabilites of login scripts/batch files is basic.
Once I know how to do the code to pull the computer name's first 3 chars, I can get a little more creative.
I have a few registry keys that I can pull the local computer name from..
Or if someone has a program that does this kind of stuff, pass that info along..
Thanks
Riser
I tapped a friend who got me started on writing a VBS file to do what I needed. Just a simple If, Then, Else statement. I wasn't aware of the variable that pulls the computer name. I was thinking I would do it via IP address, but if someone was in a different location, that'd be a problem.
Oh well.. problem solved. If anyone wants the code I used for this, let me know and I can post it.<P ID="edit"><FONT SIZE=-1><EM>Edited by riser on 04/20/05 04:49 PM.</EM></FONT></P>