Discussion Locked

batch files ...win95/98

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

have batch files with drive mappings beyond root directories e.g net use x: \\server\root\sub /y
Each user home directory is set to connect to using the %username%. when the scripts run on win2kpro connection is ok. however on 98/95 an error message appears. I tried sharing the folder
%username% to limit mapping to a shared root but that didn't help. i need a detailed approach.

3 replies

by azizhakim

Win9x clients do not recognise %username% as enviroment variable.Also 9x clients do not read bat Extentions.save your bat file with cmd ext in your netlogon share.To implement on 9x clients define variable eg set os==windows95.include your drive mapping etc.You could include all in one script eg
if exist %os%=="windows_nt" goto nt
set os==windows9x
[Place win9x scripts]
:nt
[nt scripts here]
With cmd ext should execute Good luck

This discussion is closed to new replies.