Page 1 of 1 1
Topic Options
#148592 - 2005-09-27 01:11 PM How to add an AT command...
Eirik Offline
Fresh Scripter

Registered: 2005-07-12
Posts: 13
I want to add an AT command from a kix login script to all computers in one ou in the ad. The ou login script is in place and working, but how can I add an AT command from that login script that do a copy job for me every half an hour?

Thanks a lot in advance.

Eirik

Top
#148593 - 2005-09-27 01:15 PM Re: How to add an AT command...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
with AT you mean that scheduler thingy?

is this copy to happen on one file or are you planning a copy of many?
_________________________
!

download KiXnet

Top
#148594 - 2005-09-27 01:20 PM Re: How to add an AT command...
Eirik Offline
Fresh Scripter

Registered: 2005-07-12
Posts: 13
It is that scheduler thingy yes. I have redirected the laptops "My Document" folder to D:\Data\%username%\ and I need to copy that to a backup folder in the users home directory. I don't want to use offline folders.
Top
#148595 - 2005-09-27 01:27 PM Re: How to add an AT command...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the offline folders can be a pain but...

instead of copying the whole folder each half an hour, have you considered using robocopy?
it will copy only the updated and new files.

what I'm after is the fact that copying all my docs at 30min interval will produce lot of unneeded network traffic.
_________________________
!

download KiXnet

Top
#148596 - 2005-09-27 01:32 PM Re: How to add an AT command...
Eirik Offline
Fresh Scripter

Registered: 2005-07-12
Posts: 13
Going to copy files with the archive bit set ...and robocopy is a good one to use and half an hour was just a number. But how to add a job like that to the scheduler from the login script and of course I need a file check and copy to make sure they have robocopy as well.
Top
#148597 - 2005-09-27 02:21 PM Re: How to add an AT command...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, once you have figured out the AT line, just shell it:
shell 'AT tadaa'
_________________________
!

download KiXnet

Top
#148598 - 2005-09-27 02:35 PM Re: How to add an AT command...
Eirik Offline
Fresh Scripter

Registered: 2005-07-12
Posts: 13
Hmm...testing testing...thanks
Top
#148599 - 2005-09-27 03:26 PM Re: How to add an AT command...
Eirik Offline
Fresh Scripter

Registered: 2005-07-12
Posts: 13
Hi again.

Trying to use this command:

SHELL "at 15:00 robocopy /E D:\data\ H:\Backup\"

That wont work, don't get any at jobs added....any ideas?

Eirik

Top
#148600 - 2005-09-27 03:29 PM Re: How to add an AT command...
Eirik Offline
Fresh Scripter

Registered: 2005-07-12
Posts: 13
Ok...sorry...my fault, it works I just had a typo
Top
#148601 - 2005-10-01 04:15 PM Re: How to add an AT command...
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
That assumes that botht he D: and H: drives arelocal drives or mapped at the time the AT command runs and available to AT. It would be much better to use the Task Scheduler and specify the account to be used and also specify the UNC name where the files are to be copied to.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1110 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.065 seconds in which 0.031 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org