| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Feb 15, 2005 7:45 pm Post subject: commad line winzip program? |
|
|
hello all
i'am looking for a command line type of a win zip or other other compressing freeware program out there. that will run on xp and 98
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Feb 15, 2005 7:49 pm Post subject: |
|
|
If I'm not mistaken, they are on your system already.
Do a search for unzip32.exe and zip32.exe. Then do a search for
unzip32.dll and zip32.dll.
If you have them, you should have all 4 of them. If not, log on to
the InfoZip web site to download them. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Feb 15, 2005 8:54 pm Post subject: |
|
|
yea i have played with that and i couldn't get it to work...would that program run on xp tho? i'am not sure why i can't get it to work i must have one of the commad line wrong or something. from what the help file saids it should work...maybe you could shed some light on this
i just want to zip a folder up called c:\test and all the folder that are in that folder using the quiet mode...
then for unzip i just want it to run in the quiet mode and unzip to a dir i tell it to like c:\testprgram\whatever folder
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
Hippo Contributor


Joined: 08 Feb 2005 Posts: 53
|
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Feb 15, 2005 9:44 pm Post subject: |
|
|
well cuase i want to have vds be a interface and this zip orgram is the only way to do this casue there are no zip dll for vds that can zip up folder within folders ( that i know of)
yes i got the program to work BUT the problem is with vds or i should with batch files cuase if i have this line of code in vds
runh c:\test\test.bat, wait
info done
the batch file don't exit when its done so vds set there thinking its doing something when its done
i have tried adding exit in the batch file and close no go
any one know any around this?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Feb 15, 2005 9:57 pm Post subject: |
|
|
Try:
runh command.com /k unzip.exe <switches> <files...>
With this method you can skip the batch files.
I'm not sure if command.com is shipped with Windows XP. But you can
replace it with whatever your command interpreter is called. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
Hippo Contributor


Joined: 08 Feb 2005 Posts: 53
|
Posted: Tue Feb 15, 2005 10:16 pm Post subject: |
|
|
Its cmd.exe under XP
HTH |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Feb 15, 2005 10:38 pm Post subject: |
|
|
bweckel - i tried what ya said and same thing
vds just sits there waiting for it to get done when its done  _________________ Have a nice day  |
|
| Back to top |
|
 |
Hippo Contributor


Joined: 08 Feb 2005 Posts: 53
|
Posted: Tue Feb 15, 2005 10:40 pm Post subject: |
|
|
| Try running the same command line from the command prompt. If that works maybe theres a problem with your code? |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Tue Feb 15, 2005 10:47 pm Post subject: |
|
|
Try this link:
http://www.info-zip.org/
It is made to be a free Windows-based replacement for the old PKZip utilities. These seem to work very well in a command-line environment. And - hard to beat for free! _________________ Joe Floyd |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Feb 15, 2005 11:32 pm Post subject: |
|
|
Hippo - the command works find just that it don't exit ( the zip.exe) so that is why vds hangs there
jwfv - that is what i'am using _________________ Have a nice day  |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Feb 15, 2005 11:41 pm Post subject: |
|
|
I used to have a handy set of zip tools using the Info-Zip command line utilities, but a while ago they all got rewritten to use VDSZip. I could only find one source file that still used it, from a utility to back up folders to a Zip drive. It probably isn't much use in itself, but you can see the command I used to call zip.exe. Note that I don't specify a full path, because the folder it's in is in the PATH string.
| Code: | title Zip Backup
%D = @regread(DEFAULT,,Destination)
DIALOG CREATE,Zip Backup,-1,0,458,196
DIALOG ADD,TEXT,TEXT1,10,10,,,Backup Drive:
DIALOG ADD,BUTTON,DrBrowse,8,108,24,19,...
DIALOG ADD,BITMAP,BITMAP1,8,306,32,32,#$MAIN
DIALOG ADD,TEXT,TEXT2,36,10,,,Folders to back up:
DIALOG ADD,LIST,lbFolders,52,10,328,120,,CLICK
DIALOG ADD,BUTTON,BackUp,8,352,96,36,Back Up!,,DEFAULT
DIALOG ADD,BUTTON,AddFolder,52,352,96,24,&Add Folder
DIALOG ADD,BUTTON,RemoveFolder,84,352,96,24,&Remove Folder
DIALOG ADD,PROGRESS,Space,156,352,96,16
DIALOG ADD,TEXT,TEXT3,139,352,,,Space Used:
DIALOG ADD,STATUS,Status
DIALOG ADD,EDIT,edDest,8,80,24,19,%D,,READONLY
DIALOG SHOW
DIALOG FOCUS,BackUp
LIST CREATE,1
LIST ASSIGN,1,@regread(DEFAULT,,Backup List)
if @greater(@count(1),0)
%I = 0
repeat
list seek,1,%I
if @not(@file(@item(1),D))
list delete,1
else
%I = @succ(%I)
end
until @equal(%I,@count(1))
end
list assign,lbFolders,1
list close,1
:lbFoldersCLICK
:evloop
if @greater(@index(lbFolders),-1)
dialog enable,RemoveFolder
else
dialog disable,RemoveFolder
end
wait event
goto @event()
:DrBrowseButton
%D = @dirdlg(Select Backup Destination,@dlgtext(edDest))
if @ok()
dialog set,edDest,%D
end
goto evloop
:AddFolderButton
%F = @dirdlg(Select Folder to Back Up)
if @ok()
LIST ADD,lbFolders,%F
end
goto evloop
:RemoveFolderButton
LIST DELETE,lbFolders
goto evloop
:close
gosub RegStore
exit
:BackupButton
gosub RegStore
:testlabel
if @not(@equal(@volinfo(%D),BACKUP))
goto askinsert
else
goto testarchive
end
:askinsert
if @query(Insert disk labelled BACKUP in drive @substr(%D,1,2) and press OK)
goto testlabel
else
goto end
end
:testarchive
if @file(%DBACKUP.LOG)
if @query(Overwrite backup of @datetime(t 'on' dd mmm yy,@file(%DBACKUP.LOG,T))?)
goto startbackup
else
goto askinsert
end
end
:startbackup
list create,1
dialog set,Status,Deleting old backup files
parse "%E;%T",@volinfo(%D,FS)
gosub updateprogress
rem delete everything first
FILE DELETE,%DBACKUP.LOG
FILE DELETE,%D*.zip
rem now back the folders up
dialog set,Status,Starting new backup
%E = @volinfo(%D,F)
gosub updateprogress
wait 2
%I = -1
repeat
%E = @volinfo(%D,F)
gosub updateprogress
%I = @succ(%I)
If @greater(@count(lbFolders),%I)
LIST SEEK,lbFolders,%I
%F = @item(lbFolders)
%N = @name(%F)
dialog set,Status, Backing up %F
list add,1,@datetime(yyyy/mm/dd hh:nn:ss) Backing up %F to %D%N.zip
RUNH ZIP.EXE -r -S -b @env(TEMP) @chr(34)%D%N@chr(34) @chr(34)%F@chr(34),wait
if @zero(@retcode())
list add,1,@datetime(yyyy/mm/dd hh:nn:ss) Done
end
end
until @equal(%I,@count(lbFolders))@not(@zero(@retcode()))
if @zero(@retcode())
dialog set,Status,Backup completed
else
beep
list add,1,@datetime(yyyy/mm/dd hh:nn:ss) Backup failed: error code @retcode()
dialog set,Status,Backup failed: error code @retcode()
end
list savefile,1,%DBACKUP.LOG
list close,1
wait 30
LOADLIB dsdrive.dll
%E = @lib(dsdrive.dll,Eject,INT:,@substr(%D,1))
FREELIB dsdrive.dll
goto evloop
:RegStore
REGISTRY WRITE,DEFAULT,,Destination,@dlgtext(edDest)
REGISTRY WRITE,DEFAULT,,Backup List,@text(lbFolders),MULTI
exit
:updateprogress
dialog set,Space,@diff(100,@div(@prod(%E,100),%T))
exit
|
_________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Feb 15, 2005 11:45 pm Post subject: |
|
|
Here's the syntax for command.com:
| Quote: |
Starts a new copy of the Windows Command Interpreter.
COMMAND [[drive:]path] [device] [/E:nnnnn] [/L:nnnn] [/U:nnn] [/P] [/MSG]
[/LOW] [/Y [/[C|K] command]]
[drive:]path Specifies the directory containing COMMAND.COM.
device Specifies the device to use for command input and output.
/E:nnnnn Sets the initial environment size to nnnnn bytes.
(nnnnn should be between 256 and 32,768).
/L:nnnn Specifies internal buffers length (requires /P as well).
(nnnn should be between 128 and 1,024).
/U:nnn Specifies the input buffer length (requires /P as well).
(nnn should be between 128 and 255).
/P Makes the new Command Interpreter permanent (can't exit).
/MSG Stores all error messages in memory (requires /P as well).
/LOW Forces COMMAND to keep its resident data in low memory.
/Y Steps through the batch program specified by /C or /K.
/C command Executes the specified command and returns.
/K command Executes the specified command and continues running.
|
Try ::
command.com /C unzip32.exe <switches> <file1> ... _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Wed Feb 16, 2005 12:58 am Post subject: |
|
|
hummm my question is
| Code: |
RUNH ZIP.EXE -r -S -b @env(TEMP) @chr(34)%D%N@chr(34) @chr(34)%F@chr(34),wait
|
he used it with out having any problems or without using commad com..
bweckel that /c seemed to work BUT i know xp uses a diff commad so will this work on xp? and i can't find any info on that unzip can you unzip it to a folder you want? or does it unzip to the current and you can't chnage it.......
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Wed Feb 16, 2005 3:54 am Post subject: |
|
|
only problem i found is that not sure how to have vds added files i mean
if i was only adding one file that is easy to have vds do but when you have to added alot i'am not sure on how to have vds format that file right
for eample
zip c:\test\test file 1,file 2, etc
when i try to have vds do it .. it does this
file1
file2
file3
whick won't work  _________________ Have a nice day  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|