I'm wondering if there is a way to add a network share (either UNC or mapped drive) to the path of a user when they login? for example have a directory \\smbserver\apps and put putty.exe in there.. so that when I sit down at a machine I will always have putty in the path.. Is that possible?
Miguel Da Silva - Servicio de Informática
2006-Aug-14 15:47 UTC
[Samba] append to path from login script?
On Mon, 14 Aug 2006 11:36:48 -0400 "B. Cook" <bcook@poklib.org> wrote:> I'm wondering if there is a way to add a network share (either UNC or > mapped drive) to the path of a user when they login? > > for example have a directory \\smbserver\apps and put putty.exe in > there.. so that when I sit down at a machine I will always have putty in > the path.. > > Is that possible? > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/sambaIt seems more related to how to do an "Windows script". Look for some resouce about this. Good luck. -- Miguel Da Silva. Servicio de Informatica. Facultad de Ciencias.
B. Cook wrote:> I'm wondering if there is a way to add a network share (either UNC or > mapped drive) to the path of a user when they login? > > for example have a directory \\smbserver\apps and put putty.exe in > there.. so that when I sit down at a machine I will always have putty > in the path.. > > Is that possible?The user's path is %path% in Windows. A command like: SET path=%path%;\\smbserver\apps should work. Of course, if you have the share mapped to a drive letter, you should use that instead (shorter and gives an extra layer of redirection, in case you change the server).
just do windows key + r, \\smbserver\apps\putty.exe or install wpkg and have it copy putty.exe to all users\desktop B. Cook wrote:> I'm wondering if there is a way to add a network share (either UNC or > mapped drive) to the path of a user when they login? > > for example have a directory \\smbserver\apps and put putty.exe in > there.. so that when I sit down at a machine I will always have putty > in the path.. > > Is that possible?
I make this that way, in the logon script: After mapping the network drive. ... path | find "R:\Util;" > nul if errorlevel 1 echo Verificando a variavel de ambiente path ............ NAO DEFINIDA if not errorlevel 1 goto path_ok \\%SERVIDOR%\netlogon\winset.exe PATH=R:\Util;%PATH% if errorlevel 1 echo Definindo a variavel de ambiente path .............. ERRO if not errorlevel 1 echo Definindo a variavel de ambiente path .............. OK :path_ok echo Verificando a variavel de ambiente path ............ JA DEFINIDA ... I dont remeber where I got the "winset.exe" utility, its needed to redefine the environmnet variables outside the shell executing the logon script. Edmundo Valle Neto B. Cook escreveu:> I'm wondering if there is a way to add a network share (either UNC or > mapped drive) to the path of a user when they login? > > for example have a directory \\smbserver\apps and put putty.exe in > there.. so that when I sit down at a machine I will always have putty > in the path.. > > Is that possible?