Creating Folders

  • Thread starter Thread starter Ray at
  • Start date Start date
Hello,

Why the W2K cretaes a Windows directory inside %USERPROFILE% for some user
and for others don´t?



Thank you
 
Ray,
They are active users and i made a test , deleting the Windows folder under
%USERPROFILE% of two users. For one user , the W2K created this folder and
for the other don´t. The question is How can i set this users to windows
create this folder at logon?

Thanks
 
Ah, I see. You could do (in a .bat):

mkdir %userprofile%\windows>nul 2>&1

That'll make a Windows directory, and it already exists, the error will be
surpressed.

Ray at work
 
Are you sure that it isn't an issue where the program isn't using something
like the %homeshare% variable and looking for a Windows dir in there? And
the user doesn't have a %homeshare% varible?

Ray at work
 
Ray i ´ve already done that.
But it seems hopeless, because the program, that uses the .ini file inside
this folder, don,t recognyze it, if the folder is created by me. Although
it is recognyzed if the folder is created by windos2000.

Strange, but that is the way it ´s working


Thanks
 
Yes i am shure
The program looks for %USERPROFILE%\Windows
Here it is the diferences between the variables for each user
Working fine
Homedrive=C:
Homepath=\Documents and Settings\username

Working Bad
Homedrive=U:
Homepath=\
Homeshare=\\(server name)


Thanks
 
Back
Top