Windows 95/98 does not create environment variables such as %username%
automatically. You must create and define variables manually so that they
resolve correctly for each user.
See:
http://support.microsoft.com/default...b;en-us;193808
Doug Sherman
MCSE Win2k/NT4.0, MCSA, MCP+I, MVP
"Angela" <(E-Mail Removed)> wrote in message
news:098f01c3ce65$1152e590$(E-Mail Removed)...
> Hi,
>
> We are are trying to map to a user directory that resides
> on a Win2003 server. We are using this code in a .bat
> file. We tried from both the server and machine itself.
>
> net use \\del\users\%username%
>
> Says "Error 50: you have attempted an error that can not
> be performed by your computer or from the server you are
> trying to access...."
>
> The same script runs on a Win2000 machine fine. The
> server is using Active Directory. We can browse to the
> folder and map it manually.
>
> We would like to have the script run from the Win 2003
> server.