265 pts.
 how to set our own path to xp client in a domain controller of win2003 server
iam using win2003 as domain controller with 100 xp clients, now i want to use turboc2 in xp and want to save files in server for this i need to give turboc2 in path of every client, how can i set path at a time in server to run on all xp clients when it connected to domain?

Software/Hardware used:
ASKED: November 20, 2008  5:25 AM
UPDATED: November 29, 2008  1:59 AM

Answer Wiki:
You can do this by using VBScript in a logonscript; hereafter an example: <pre>Dim CurrPath Dim NewPath Set WshShell = CreateObject("WScript.Shell") Set WshSystemEnv = WshShell.Environment("SYSTEM") CurrPath = WshSystemEnv("PATH") NewPath = CurrPath & ";c:mydir;" ' set the ";c:mydir;" to your own needs <b>WshSystemEnv(”PATH”) = NewPath</b> </pre>
Last Wiki Answer Submitted:  November 29, 2008  1:59 am  by  alessandro.panzetta   9,695 pts.
All Answer Wiki Contributors:  alessandro.panzetta   9,695 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I can’t seem to grasp what you are trying to do. Do you want to create a mapped drive to a share on the server when the users login?

 27,310 pts.

 

Thanks for ur reply
i want to use turboc2 locally(client) in cmd mode to save in mapdrive in server, for this i need to create tc local path right? so i want to do this in all client systems through DC win2003, any possibility there??

 265 pts.

 

How do you do it manually (full details please) ?

 63,535 pts.

 

set path=c:windows;c:turboc2

 265 pts.

 

Alessandro, that script does not actually set the new path.
I think this is missing:

WshSystemEnv(“PATH”) = NewPath

I also think this will cause “;c:mydir;” to be added each time the user logs on (i.e. … ;c:mydir;c:mydir;c:mydir;c:mydir)
How would you deal with this ? maybe some logoff script ?

—————————-

Bluesoft, are you going to put your program executables in that path, so users can run them from there ? , or what you need to do is make your programs save their data to that path ?

 63,535 pts.