English
Source / code snippets

Dos create Fülldatei Profan7

 

Michael
Dell
time what DOS en
Declare OrtName$,Fueller$,CompSize!,MaxSize&,GBytes!,Buff#,DAL&
Cls
Locate 2,2
Print MBytes (Enter = 64 MB): ;
Input MaxSize&
Locate 3,2
Print Dateiname (Enter = C:Temp.fll): ;
Input OrtName$
Locate 4,2
Print Fuellzeichen  (Enter = Chr$(0)): ;
Input Fueller$
Locate 5,2
Print Fuelldatei in the CONNECTION	 lschen? ([J]a / [n]one): ;

While 1

    WaitKey

    If ((%Key = 74) | (%Key = 106))

        Print Yes
        DAL& = 1
        Break

    ElseIf ((%Key = 78) | (%Key = 110))

        Print No
        DAL& = 0
        Break

    ElseIf (%Key = 27)

        Print discontinue
        Sleep 2000
        Cls
        End

    EndIf

EndWhile

Sleep 1000
Case ((MaxSize& < 1) | (MaxSize& > 2046)): MaxSize& = 64
Case ((Len(OrtName$) < 4) | (Len(OrtName$) > 260)): OrtName$ = C:Temp.fll
Case (Len(Fueller$) < 1): Fueller$ = Chr$(0)
Case (Len(Fueller$) > 1): Fueller$ = Left$(Fueller$,1)
CompSize! = (MaxSize& * 1048576)
Cls
Sleep 100
Locate 2,2
Print Starte...
Sleep 100
Dim Buff#,16386

WhileLoop 0,16384

    String Buff#,&Loop = Fueller$

EndWhile

Assign #1,OrtName$
OpenRW #1

WhileNot (GBytes! > (CompSize! - 16380))

    BlockWrite #1,Buff#,0,16384
    GBytes! = (GBytes! + 16384)

EndWhile

CloseRW #1
Assign #1,
Dispose Buff#
Cls
Locate 2,2
Print ( written:  + Str $(Int(GBytes! / 1024)) +  kB)
Locate 3,2
Print ( FileSize   :  + Str $(Int(FileSize(OrtName$) / 1024)) +  kB)

If DAL&

    Assign #1,OrtName$
    Erase #1
    Assign #1,

EndIf

End
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
07/13/08  
 



at that Test with XProfan10-Free sustain I a Abbruchmeldung.
 
07/13/08  
 



...what about me the Abgebildete with normalem Profan-editor

11 kB
Hochgeladen:07/13/08
Downloadcounter309
Download
 
07/13/08  
 




Michael
Dell
Sorry,

wasn't for höhere versions written, habs adjusted
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
07/14/08  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.348 Views

Untitledvor 0 min.
Member 862464105/13/24
H.Brill08/19/20

Themeninformationen

this Topic has 3 subscriber:

Michael Dell (2x)
unbekannt (1x)
iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie