| View previous topic :: View next topic |
| Author |
Message |
Newbie2k2 Newbie
Joined: 17 Mar 2002 Posts: 11
|
Posted: Tue Mar 26, 2002 9:07 pm Post subject: File Split |
|
|
Hi
i want to split a file in 1024 bytes (1kb) PARTS but with numered subfolders
e.g.: a file is 30kb > splitted in folder1 is part1 (1kb), in folder2 is part2(1kb)
it begins like this:
| Code: |
DIALOG CREATE,File Splitter,-1,0,301,94
DIALOG ADD,TEXT,TEXT1,6,6,27,13,Input:
DIALOG ADD,EDIT,EDIT1,5,37,,,
DIALOG ADD,TEXT,TEXT2,36,6,35,13,Output:
DIALOG ADD,EDIT,EDIT2,34,46,180,19,,,
DIALOG ADD,BUTTON,in,2,228,64,24,...
DIALOG ADD,BUTTON,out,32,232,64,24,...
DIALOG ADD,BUTTON,Save,62,8,64,24,Save
DIALOG SHOW
:evloop
wait event
%e = @event()
goto %e
:InButton
%%infile = @filedlg(*.*)
if %%infile
dialog set,edit1,%%infile
end
goto evloop
:SaveButton
if @not(@dlgtext(edit1))
Info Please select a input file.
goto evloop
end
if @not(@dlgtext(edit2))
Info Please select a output file.
goto evloop
end
|
|
|
| Back to top |
|
 |
Lucyfer Newbie

Joined: 06 Apr 2002 Posts: 16 Location: Quebec/Canada
|
Posted: Sat Apr 06, 2002 3:40 pm Post subject: |
|
|
Hmm,
By subfolders, do you realy mean FOLDERS of FILES ?
Sorry, but I can't figure out what you want to do with such a code...
What is the point of all this? I might get ideas to help you...
Bye |
|
| Back to top |
|
 |
Protected Valued Contributor


Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Sun Apr 07, 2002 12:24 am Post subject: |
|
|
| You must use the BINFILE command, read the part of the VDS help file about that command and about @binfile, or you can also use VDSINOUT.DLL or VDSBIN.DLL\VDSDLL.DLL, all these commands and dlls will allow you to read a file and retrieve 1kb packs, and then save them into another file, you can create the folders with the DIRECTORY command. |
|
| Back to top |
|
 |
Newbie2k2 Newbie
Joined: 17 Mar 2002 Posts: 11
|
Posted: Thu Apr 11, 2002 1:14 pm Post subject: |
|
|
| i solved the problem - thanx |
|
| 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
|
|