/ Forside / Teknologi / Udvikling / ASP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
Technical ASP question
Fra : Bob Smith


Dato : 13-02-01 18:10

Hi,


I am trying to provide users with the functionality of being able
to archive records (each record will have data + external files
associated with them)

They way that I have gone about this is that I create a directory
with the same name as the record and place a copy of all relevant
data + files in there. I then want to compress the directory in
to a zip file but it doesnt work if I try it using a batch
file to call pkzip or if I do it directly - see code below.


set wshell = server.createobject("wscript.shell")
wshell.run sDir & "compress.bat"

or

wshell.run sDir & "pkzip -r test_comp.zip *.*"

(the pkzip is in the current directory asnd the compress.bat file only calls
the pkzip program with the correct parameters)

Can you see what I am doing wrong??, or is there some other way
that I can archive the directory contents so that users can download
them as 1 file that can be stored on CD.


Thanks


Bob



 
 
Søg
Reklame
Statistik
Spørgsmål : 177557
Tips : 31968
Nyheder : 719565
Indlæg : 6408868
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste