Re: mkdir from logon.bat




"Geir Holmavatn" <geir59@xxxxxxxxx> wrote in message
news:eSiIl66QHHA.4384@xxxxxxxxxxxxxxxxxxxxxxx
Pegasus (MVP) wrote:

It is sufficient to use the following two commands:

mkdir "C:\Private\%username%\My Music"
mkdir "C:\Private\%username%\My Pictures"
pause

The "pause" command will suspend the logon batch file
so that you can see why the folders were not created.

Hi again,

When trying from another workstation the actual folders got created...
I haven't the previous workstation on hand, so I cannot say why it
failed the first time.

Another one, I need to back up a subdirectory from the workstation to
the server when the domain user is logging out. Can I safely use the
xcopy parameter /M which only copies files with the archive flag set.
Will then only modified or new files be copied to the server (to save
time)?

How should I call a logoff bat file like this to make sure it will be
called when the domain user logs off the workstation..?

regards again

geir

The /m switch is unsafe because the archive attribute can be
affected by other programs too, not just by your xcopy run.
Much better to use the /d switch.

You can use Group Policy to run a script at logoff time.
However, if the machine crashes or if the user flicks the
switch then it obviously won't work!
Control Panel / Administrative Tools / Group Policy /
User Configuration / Windows Settings / Scripts (Logon/Logoff)


.



Relevant Pages

  • Re: mkdir from logon.bat
    ... mkdir "C:\Private\%username%\My Pictures" ... The "pause" command will suspend the logon batch file ... When trying from another workstation the actual folders got created... ... I haven't the previous workstation on hand, so I cannot say why it failed the first time. ...
    (microsoft.public.windows.server.general)
  • Re: Browsing Network
    ... Netlogon and Sysvol shares. ... > When I click on my network places and then search the Entire Network / ... > to see these folders ... > and access them while logged in as a normal domain user? ...
    (microsoft.public.windows.server.general)
  • RE: classroom/kiosk type security
    ... installing software and creating folders in drive C. ... standard domain user will be a member of Local User on the ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Enable sharing of Folders for Domain Users on windows XP Professional
    ... Thanks, but that's not what I mean, In this way the domain user is NOT ... As a local admin sharing is no problem ... users could share folders on wich they had the right ...
    (microsoft.public.windowsxp.help_and_support)
  • Browsing Network
    ... I have a W2K domain and I'm logging into it from a W2K Pro workstation with ... Domain User account. ... When I click on my network places and then search the Entire Network / ... SYSVOL folders ...
    (microsoft.public.windows.server.general)