compressing folder/files from CSPro app

Discussions about CSEntry
Post Reply
Guest

compressing folder/files from CSPro app

Post by Guest »

I've been searching "compress" and "zip" in this forum with no result,
how to run compress files/folder in Android?

Thanks in advance,

-iip-
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: compressing folder/files from CSPro app

Post by Gregory Martin »

Right now there is no way to do this directly from the application. This could be a feature that is added at some point. There are third-party programs, such as File Manager, that you could use to manually compress files, but I imagine that you want to do this automatically in logic.
Guest

Re: compressing folder/files from CSPro app

Post by Guest »

Hi greg, thanks for reply,

Yes, I want to do this automatically in the application, I don't want interviewer do it manually.
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: compressing folder/files from CSPro app

Post by Gregory Martin »

Okay, we'll add this to the list of features that people want. I can see why you might want to do this, so it's something that we may implement soon.
KASTELIC
Posts: 22
Joined: July 8th, 2013, 1:52 pm

Re: compressing folder/files from CSPro app

Post by KASTELIC »

I concur; the ability to zip and upzip files is a very desirable feature. Why transfer more data when you can transfer less.

One thing that is extremely important in our projects is the ability to govern the location and naming conventions of data files. With thousands of data files it is essential that we can locate any file we need with ease.

Here are a couple examples of my use of zipping in the PC environment.

{BACKUP THE FILES WITH DATE STAMP}
SetTimeStamp(); { User Defined Function }
ZipFile = concat("..\..\BACKUP\HH-", strip(ConcatCode),"-", strip(FullStamp2),".zip");
TxtFile = concat( "..\..\WORK\HH\HH-", strip(ConcatCode),"*.*");
Cmd = concat("..\..\TOOLS\zip.exe ", strip(ZipFile), " ", strip(TxtFile));
execsystem(Cmd, minimized, wait);

{SEND REPLACE ZIP SYNC FILE}
setfile (Team, "C:\NPSY4\CASH\TeamNo.txt");
fileread (Team, Return);
close(Team);
SyncFile = concat("C:\NPSY4\SYNC\Dropbox\TEAM-", strip(Return),"\HH-",strip(ConcatCode), ".zip");
Input1 = concat( "..\..\WORK\HH\HH-", strip(ConcatCode),".FDE");
Input2 = concat( "..\..\WORK\HH\HH-", strip(ConcatCode),".FOS");
Input3 = concat( "..\..\WORK\HH\HH-", strip(ConcatCode),".FOC");
Input4 = concat( "..\..\WORK\HH\HH-", strip(ConcatCode),".FNB");
Input5 = concat( "..\..\WORK\HH\HH-", strip(ConcatCode),".FDE.not");
Cmd = concat("..\..\TOOLS\zip.exe ", strip(SyncFile)," ", strip(Input1)," ", strip(Input2)," ", strip(Input3)," ", strip(Input4)," ", strip(Input5));
execsystem(Cmd, minimized, wait);

If possible to feed parameters for zipping and unzipping forward in the Android environment, maybe combined with a level of encryption, this would be a very powerful tool for CSPro CAPI.
Post Reply