extract files

Advertisement

Guest

extract files

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...

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: extract files

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

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.
Last edited by martin on 2004-01-14; edited 1 time in total

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

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.

Reply with quote

Biju
Guest

martin 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

Reply with quote

Guest

martin 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 ;)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Anonymous wrote:

it'll certainly helpfull for people like me,
to have lots of usefull custom commands.
not just examples.
(at least for me ;)
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 :-) 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.

Reply with quote

Advertisement

Guest

martin 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 ;)
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 :-) 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!!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

How would I write a command to overwrite the files on the server?
What should the command do exactly?

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.

Reply with quote

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

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

coth wrote:

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

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.

Reply with quote

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

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.

Reply with quote

Mayank
Guest

Need command to make zip the file from winscp

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Need command to make zip the file from winscp

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:
https://winscp.net/eng/docs/script_auto_compress_download

If that does not help, come back.

Reply with quote

Advertisement

You can post new topics in this forum