Re: copying folders, subfolders and files...



On Dec 10, 4:47 pm, Michael Vilain <vil...@xxxxxxxxxxxxx> wrote:
In article
<3810a44b-b686-4ad1-9e65-488664e78...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,









 justaguy <do...@xxxxxxxxx> wrote:
On Dec 10, 1:55 pm, Only Nixon could go to China Blue
<chine.b...@xxxxxxxxx> wrote:
In article
<ddfaeb2d-5e9b-472c-b890-708c716e2...@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,

 justaguy <do...@xxxxxxxxx> wrote:
Upon unzipping of a compressed file with zip extension, the following
script is intended to copy all the folders, respective sufolders and
files, and hopefully file attributes to the target folder of /Library/
Railo
I've looked at the ditto command, the X option is for copy directory
(folder) and subdirectories (subfolders) and the k for zip file.
Would it do the job or am I still "sloppy"?  Thanks in advance.

#!/bin/sh
cd /Library
mkdir Railo
# copy folders, subfolders and files
uudecode <<'::eof::' -p | ditto -X -k

If you're not sure, try out small cases in Terminal. You can create a small
zip
archive and then just try something like
    cat test.zip | ditto -x -k - /tmp
and see if it ends up in /tmp.

--
My name Indigo Montoya.      |        Ha, ha, that is very logical.
You flamed my father.        |       I'm whoever you want me to be.
Prepare to be spanked.       |  Annoying Usenet one post at a time.
Stop posting that!           |    At least I can stay in character.

I need to add, I do not have a Mac at my disposal.  Not sure if anyone
is willing to give a spin with the above using a sample zip file that
resembles my app...

http://www.knowledgenotebook.com/test/ditto_test.zip

Where do we send the bill for testing and consulting services?

--
DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

On tab :) Ever drink in a pub?
.



Relevant Pages

  • Re: copying folders, subfolders and files...
    ... and hopefully file attributes to the target folder of /Library/ ... and subdirectories (subfolders) and the k for zip file. ... mkdir Railo ... # copy folders, subfolders and files ...
    (comp.sys.mac.system)
  • Re: RFI - Moving files between folders in doc libraries - any improvements in this behavior?
    ... > and folders (subfolders) to organize content. ... SharePoint is a new creation. ... users did not have document libraries into which they can upload ...
    (microsoft.public.sharepoint.portalserver)
  • Re: folderLastAccessed script
    ... It will consider nothing other than the subfolders of ... I would like to get the last time all the folders were last accessed. ... Dim WshShell ... Dim fs, f, s, strfolder ...
    (microsoft.public.scripting.vbscript)
  • Re: Exchange/Outlook 2003 mailbox sizes - best practises
    ... the data is important enough to keep, it belongs on the server. ... Well he stores practically everything that he does into his mailbox ... Don't let users create subfolders under built-in folders. ...
    (microsoft.public.windows.server.sbs)
  • Re: Making folders....
    ... Just the subfolders on the root level. ... You see the folders for each country are located as a subfolder ... The second script is a version that will create new folders only at ... If Not oFSO.FolderExists(sFolder & "\" & sNewFolder) Then ...
    (microsoft.public.windowsxp.general)