forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


File Split

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Newbie2k2
Newbie


Joined: 17 Mar 2002
Posts: 11

PostPosted: Tue Mar 26, 2002 9:07 pm    Post subject: File Split Reply with quote

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
View user's profile Send private message Send e-mail
Lucyfer
Newbie


Joined: 06 Apr 2002
Posts: 16
Location: Quebec/Canada

PostPosted: Sat Apr 06, 2002 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Protected
Valued Contributor
Valued Contributor


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Sun Apr 07, 2002 12:24 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Newbie2k2
Newbie


Joined: 17 Mar 2002
Posts: 11

PostPosted: Thu Apr 11, 2002 1:14 pm    Post subject: Reply with quote

i solved the problem - thanx
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group