Topic "extract files"

Author Message
Guest




a feature so i can upload one zipped file
to the server and then right click and choose
extract files.
then, all hundreds of files extracted.

much faster than i have to upload one file at a time...

or better yet...

if i upload a folder, it automatically compress the folder to one zipped file.
then upload this zipped file and then extract it there.

so much faster...
Advertisements
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19528
Location: Prague, Czech republic
I would not do this for many reasons.

Some hint that may help you: SSH protocol itself allows compression (see SSH tab of login dialog). If you use SCP protocol, you may setup custom command (see Preferences dialog) that does this.
_________________
Martin Prikryl
Guest




it'll be great if you may share to newbee,
the custom command that can do this...
Guest




why not put a few of usefull custom commands
installed as default WinSCP installation
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19528
Location: Prague, Czech republic
Anonymous wrote:
it'll be great if you may share to newbee,
the custom command that can do this...

Try to add command 'unzip "!"', name it for example "&Unzip". Than right-click your uploaded ZIP file and select "Custom Commands ... Unzip".

Update: I have corrected the command syntax, there were 'unzip !.!', which was wrong. Also quotes were added for case file name has space in it.
_________________
Martin Prikryl

Last edited by prikryl on 14 Jan 2004; edited 1 time in total
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19528
Location: Prague, Czech republic
Anonymous wrote:
why not put a few of usefull custom commands
installed as default WinSCP installation

There are three example commands. I think it is enough to get the idea and create your own.
_________________
Martin Prikryl
Biju

Guest


prikryl wrote:
Try to add command "unzip !.!", name it for example "&Unzip". Than right-click your uploaded ZIP file and select "Custom Commands ... Unzip".

Adding a "Customize" branch in the leftside tree may improve visibility

like:-

Customize
- Editor
- External Apps
- Icons & Shortcuts
- User Commands

Even though "Customize", Preferences, Options are all the same, word "Custom" will give one a feeling that you can do more
Guest




prikryl wrote:
Anonymous wrote:
why not put a few of usefull custom commands
installed as default WinSCP installation

There are three example commands. I think it is enough to get the idea and create your own.


yes, for people with some linux knowledge.
i'm using windows all the time and
i still try to find a time to learn linux command.
the only linux i use is the webserver,
which i only do is uploading some files...

it'll certainly helpfull for people like me,
to have lots of usefull custom commands.
not just examples.
(at least for me Wink
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19528
Location: Prague, Czech republic
Anonymous wrote:
it'll certainly helpfull for people like me,
to have lots of usefull custom commands.
not just examples.
(at least for me Wink

Keep in mind that I can use only commands that works on every *nix platform. Otherwise I would face hundreds of bug reports, what I do not want Smile In fact there is only few command I can use. I would not even dare to add the "unzip" command, because I think that even unzip is not supported everywhere.
_________________
Martin Prikryl
Guest




prikryl wrote:
Anonymous wrote:
it'll certainly helpfull for people like me,
to have lots of usefull custom commands.
not just examples.
(at least for me Wink

Keep in mind that I can use only commands that works on every *nix platform. Otherwise I would face hundreds of bug reports, what I do not want Smile In fact there is only few command I can use. I would not even dare to add the "unzip" command, because I think that even unzip is not supported everywhere.


Hello,

How would I write a command to overwrite the files on the server?

I have tried to do through the command line, Command window and runing the recommended UNZIP custom Command, but I get a "Host has not answered for more than 15 seconds" I end up aborting.

I havent been able to find the window where I can respond to requests from the server.

Thanks!!
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19528
Location: Prague, Czech republic
Quote:
How would I write a command to overwrite the files on the server?

What should the command do exactly?

Quote:
I havent been able to find the window where I can respond to requests from the server.

You can use only commands that need no response.
_________________
Martin Prikryl
coth

Guest


hello all.

i have a problem with command for unzip. can anyone help me?

there is unzip on server of my hoster with next commands

Code:

UnZip 5.50 of 17 February 2002, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports to the authors at Zip-Bugs@lists.wku.edu; see README for details.
Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
   Default action is to extract files in list, except those in xlist, to exdir;
   file[.zip] may be a wildcard.  -Z => ZipInfo mode ("unzip -Z" for usage).
   -p  extract files to pipe, no messages     -l  list files (short format)
   -f  freshen existing files, create none    -t  test compressed archive data
   -u  update files, create if necessary      -z  display archive comment
   -x  exclude files that follow (in xlist)   -d  extract files into exdir
 modifiers:                                   -q  quiet mode (-qq => quieter)
   -n  never overwrite existing files         -a  auto-convert any text files
   -o  overwrite files WITHOUT prompting      -aa treat ALL files as text
   -j  junk paths (do not make directories)   -v  be verbose/print version info
   -C  match filenames case-insensitively     -L  make (some) names lowercase
   -X  restore UID/GID info                   -V  retain VMS version numbers
                                              -M  pipe through "more" pager
 Examples (see unzip.txt for more info):
   unzip data1 -x joe   => extract all files except joe from zipfile data1.zip
   unzip -p foo | more  => send contents of foo.zip via pipe into program more
   unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer


i'm trying to make next custom command
unzip "!" -x -o "!?&Extract to:?.!"

but WinSCP tell me about error in when i'm trying to run it
unzip "!" -x -o "."

when i'm trying to run it in terminal (unzip "zipfile" -x -o ".") i have 15 sec timeout, but files from zip unpacked...



sorry if english bad
Guest




sorry if wrong forum, just this one is about zip, so do not making double threads...
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19528
Location: Prague, Czech republic
coth wrote:
but WinSCP tell me about error in when i'm trying to run it
unzip "!" -x -o "."

What error?

Quote:
when i'm trying to run it in terminal (unzip "zipfile" -x -o ".") i have 15 sec timeout, but files from zip unpacked...

Please enable logging and check the log file. If it does not help you, post the log file.
_________________
Martin Prikryl
coth

Guest


i'm not yet tryed one thing

but

error in run
unzip "!" -x -o "."
it seems filename don't fill into !

well, i found problem of freezing - filename in "".

when i'm running it works perfect
unzip zipfile -x -o

may be anoter problem is in "." (for current directory), i'll check it tonight
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19528
Location: Prague, Czech republic
coth wrote:
i'm not yet tryed one thing

but

error in run
unzip "!" -x -o "."
it seems filename don't fill into !

Please post a log file.
_________________
Martin Prikryl
Mayank

Guest


Hi ,

I am making a script file from my application machine . we have a db server at linux and we have a .dmp back up file at linux machine .i need to make them a zip of that dmp file from that batch script .
I need a command that run from windows machine and make the zip the file at linux machine .
Urgent


Thanks
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19528
Location: Prague, Czech republic
Mayank wrote:
I am making a script file from my application machine . we have a db server at linux and we have a .dmp back up file at linux machine .i need to make them a zip of that dmp file from that batch script .
I need a command that run from windows machine and make the zip the file at linux machine .

Please read documentation:
http://winscp.net/eng/docs/script_auto_compress_download

If that does not help, come back.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License