Page 1 of 1 1
Topic Options
#117176 - 2004-04-01 05:47 PM neophyte question
logarhythm Offline
Lurker

Registered: 2004-04-01
Posts: 2
can I use kiXtart to do the following on win2k pro (not server):

every 1st of the month, automatically take the contents of a folder on local drive, zip them, name the file something like 2004-04-01.zip and move the zipped file onto a network drive.

thanks.

Top
#117177 - 2004-04-01 05:52 PM Re: neophyte question
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Very possible....You would probably need the winzip command line tools installed, or some other command line zipping utility however. The renaming/copying on the first of the month is very easy to accomplish.
Top
#117178 - 2004-04-01 05:53 PM Re: neophyte question
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
You can here to download the winzip command line support if you dont already have it...

http://www.winzip.com/downcl.htm

Top
#117179 - 2004-04-01 06:22 PM Re: neophyte question
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Heres some example code for ya using the winzip command line support....

Code:
$null = SetOption ("NoVarsInStrings","On")
$null = SetOption ("Explicit","On")

Dim $backupfile,$backupto,$wzzip,$datestamp,$MonthNo,$MDayNo

$backupfile = "C:\temptest.txt"
$backupto = "C:\Backups"
$wzzip = ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wzzip.exe","")

If @MDayNo = "1"
If Len(@MonthNo) = 1
$MonthNo = "0"+@MonthNo
Else
$MonthNo = @MonthNo
Endif
If Len(@MDayNo) = 1
$MDayNo = "0"+@MDayNo
Else
$MDayNo = @MDayNo
Endif
$datestamp = ""+@Year+"-"+$MonthNo+"-"+$MDayNo
Shell '%comspec% /c "'+$wzzip+'" -rp '+$backupto+'\'+$datestamp+'.zip '+$backupfile
Endif


Top
#117180 - 2004-04-01 07:09 PM Re: neophyte question
logarhythm Offline
Lurker

Registered: 2004-04-01
Posts: 2
very cool! I guess I'll be starting with kiXtart!

thank you everyone!


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
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.211 seconds in which 0.014 seconds were spent on a total of 13 queries. Zlib compression enabled.

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