English
Source / code snippets

Baumansicht Best Expandenv Explorer directory

 

Michael
Wodrich

!
Author: Michael Wodrich
this small Testprogramm is emerged,
because one plainer appeal the Explorers with
directory simply not functions wished...
(the Verzeichnisbaum ought to absolutely opened his)
Def @ExpandEnvironmentStrings(3) !"kernel32","ExpandEnvironmentStringsA"

Proc ExpandEnv

    Parameters s$
    Declare Buffer#, erg$, fehler&
    Dim Buffer#,4096
    fehler& = @ExpandEnvironmentStrings( Addr(s$), Buffer#, 4096 )
    erg$ = String $(Buffer#,0)
    Dispose Buffer#
    Return erg$

ENDPROC

Proc Erklaerung_zeigen

    Set("TrueColor",1)
    Cls rgb($FF,0,0)
    Color 14,12
    Locate 7, 5
    Print "Es go 2 Files under C:\programs\ angelegt"
    Locate 9, 5
    Print "Nach one Tastendruck in this Window vanish tappt im dunkeln again..."
    Locate 11, 5
    Print "!!! Please to the terminate the NotePad-Window close !!!"
    Color 15,12
    Locate 15, 3
    Print "Dieses Program shows:"
    Locate 16, 5
    Print "- Environment-variables expandieren"
    Locate 17, 5
    Print "- Explorer with Baumansicht in a given Window starten"
    Locate 18, 5
    Print "- NotePad with File aufrufen"

ENDPROC

Proc Dateien_erstellen

    Assign #1,"c:\programs\$$_test1_yxy_.txt"
    rewrite #1
    print #1,"$$$-ToDo-list-$$$"
    print #1,""
    print #1,"- Program A7839 termingerecht on the xx.xx.xx abliefern"
    print #1,"- investigation to ..."
    print #1,"- ..."
    print #1,""
    print #1,"######################################################"
    print #1,"Mit the Explorer into Arbeitsverzeichnis verzweigen"
    print #1,"und already time a the Hauptdateien open..."
    print #1,"######################################################"
    print #1,""
    print #1,""
    Print #1,"Das Program shows:"
    Print #1,"- Environment-variables expandieren"
    Print #1,"- Explorer with Baumansicht in a given Window starten"
    Print #1,"- NotePad with File aufrufen"
    print #1,""
    Print #1,"Es go 2 Files under C:\programs\ angelegt"
    Print #1,"Nach one Tastendruck into Mainwindow vanish tappt im dunkeln again..."
    print #1,""
    Print #1,"!!! Please to the End of program this NotePad-Window close !!!"
    print #1,""
    print #1,"(If your to the terminate whom Explorer on The Temp-Files show red,"
    print #1," then see your How tappt im dunkeln again vanish.)"
    print #1,""
    print #1,""
    close #1
    Assign #1,"c:\programs\$$_test2_yxy_.txt"
    rewrite #1
    print #1,"dummy eintrag"
    close #1

ENDPROC

Proc Dateien_wieder_entfernen

    Erase "c:\programs\$$_test2_yxy_.txt"
    Erase "c:\programs\$$_test1_yxy_.txt"

ENDPROC

Erklaerung_zeigen
Dateien_erstellen
WinExec(ExpandEnv("%SystemRoot%\explorer.exe /e,c:\programme"),1)
WinExec(ExpandEnv("%SystemRoot%\notepad.exe c:\programs\$$_test1_yxy_.txt"),1)
waitkey
Dateien_wieder_entfernen
end

Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
06/02/06  
 



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

4.635 Views

Untitledvor 0 min.
Gast.081509/06/24
Member 294243004/10/24
Uwe Lang07/02/23
RudiB.04/26/22
More...

Themeninformationen

this Topic has 1 subscriber:

Michael Wodrich (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