[windows2000] Re: \\netlogon invalid current path

  • From: "Costanzo, Ray" <rcostanzo@xxxxxxxxxxx>
  • To: <windows2000@xxxxxxxxxxxxx>
  • Date: Tue, 29 Oct 2002 13:25:38 -0500

Yeah, I agree that I should be able to.  Doesn't make sense to me!
Here's a simple test.bat file:

Set ROOTDRIVE=3D%windir:~0,2%
echo %ROOTDRIVE%
PAUSE

And the results:

'\\SERVERNAME\netlogon' is an invalid current directory path.  UNC paths
are n
ot supported.
Defaulting to Windows directory.

C:\WINNT>Set ROOTDRIVE=3DC:

C:\WINNT>echo C:
C:

C:\WINNT>PAUSE
Press any key to continue . . .

wtf?  (Okay, okay, I'll confess.  This is a Windows NT machine....)

> -----Original Message-----
> From: Joe Shonk [mailto:JShonk@xxxxxxxxxxxxxx]=20
=20
>=20
> ???  You should be able to execute .bat and .cmd files when=20
> logging on.  =3D
> Are you referencing the \\servername\netlogon in your script?=20
>  if so, =3D
> use %0 variable instead to reference other files in that directory.
>=20
> ie:
> call %0\mapdrv.bat
> or
> call \\%logonserver%\netlogon\mapdrv.bat
> Joe
>=20
> -----Original Message-----
> From: Costanzo, Ray [mailto:rcostanzo@xxxxxxxxxxx]
>=20
>=20
>=20
> Hi list,
>=20
> I think I asked this before like a year ago, but I don't remember what
> the solution was.  Forgive me!  Every logon script (.bat)=20
> that runs for
> our users displays this message first:
>=20
'\\SERVERNAME\netlogon' is an invalid current directory path.  UNC paths
are not supported.

Okay, I understand why it's saything since you can't open cmd.exe at a
UNC path, but it seems odd that this warning would appear.  Is there a
way I can tell Windows "this is a logon script from netlogon, so don't
expect to be open at a non-UNC path" other than by mapping a drive to
netlogon for everyone?

Thanks a lot,

Ray at work



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: