s-news
[Top] [All Lists]

Re: unziping and moving files

To: "Eric yang" <yang_eric9@yahoo.com>
Subject: Re: unziping and moving files
From: "James P. Howard, II" <jh@jameshoward.us>
Date: Tue, 29 May 2007 08:12:11 -0400
Cc: s-news@lists.biostat.wustl.edu
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=GG65Qw8YKCfefVH6HH6VYuFdclXigLMA2S11i6sRxvScXezqwZw12irFPmyX5oq1Xx+QexXJxfuz8YMPt5MpJJwT5vpkyAfaxNVdmilRdzoh5D+Yjk+rndM10yfsDJipmH8Ws5jH22M+qY/gN984SzPd3SuJoAB/7i/VUEewoBE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=UZODO5e5D5OQnMXtLpOrXGkqvjogt1EfVzCwGyBstbDSpZ4gqjx/HS27VFtZzauIUXqvFzXyoIYGbX+bATXF0bgq7g1NOOK8/9kXs2bLuwByFdeExi9TzH1gyBzaErV06BJCpncyYEPI0x87CknrVyHnONMtwjSGtE+KUgse86Q=
In-reply-to: <330968.70111.qm@web33914.mail.mud.yahoo.com>
References: <330968.70111.qm@web33914.mail.mud.yahoo.com>
Reply-to: jh@jameshoward.us
On 5/27/07, Eric yang <yang_eric9@yahoo.com> wrote:

I'm using S+ on Windows XP (32 bit) and would like to
automate something that I do repeatedly before running
my S+ code. I have numerous files that I have to unzip
and move to specific folders that have to be created.
The folders can be created in my S+ code using mkdir()
but unziping the files and moving them to the
appropriate folders is currently a manual task. Is
there a way to automate this within S+, so that the
whole task can be completely automated?

You can use the shell() function to send commands to the command line
for exectution.  For the unzipping, this will require a command line
aware unzipper, such as 7zip[1], which is freely available.  Moving
the folders can be accomplished as normal with the command line.

James

1.  http://www.7-zip.org

--
James P. Howard, II
jh@jameshoward.us
http://jameshoward.us

<Prev in Thread] Current Thread [Next in Thread>