Re: mkdir from logon.bat
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Tue, 30 Jan 2007 07:56:25 +1100
"Geir Holmavatn" <geir59@xxxxxxxxx> wrote in message
news:eSiIl66QHHA.4384@xxxxxxxxxxxxxxxxxxxxxxx
Pegasus (MVP) wrote:time)?
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
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)
.
- References:
- mkdir from logon.bat
- From: Geir Holmavatn
- Re: mkdir from logon.bat
- From: Pegasus \(MVP\)
- Re: mkdir from logon.bat
- From: Geir Holmavatn
- mkdir from logon.bat
- Prev by Date: Re: SMTP - Allow list.
- Next by Date: Re: File Server Management
- Previous by thread: Re: mkdir from logon.bat
- Next by thread: Re: Importing .reg files remotely
- Index(es):
Relevant Pages
|