Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

file managing

jonybasicjonybasic Member Posts: 21
I need to know if there is any way to make QBASIC 4.5 scan the contents of a folder in windows and print all of the files in a folder
for example

C:desktopw.something
C:desktoph.something
C:desktopa.something
C:desktop .something
C:desktope.something

im sure it must be possible but I just dont know.
please if anyone can help me, let me know.

Comments

  • IDKIDK Member Posts: 1,784
    : I need to know if there is any way to make QBASIC 4.5 scan the contents of a folder in windows and print all of the files in a folder
    : for example
    :
    : C:desktopw.something
    : C:desktoph.something
    : C:desktopa.something
    : C:desktop .something
    : C:desktope.something
    :
    : im sure it must be possible but I just dont know.
    : please if anyone can help me, let me know.
    :
    :
    Use SHELL "DIR"

    The PROgrammer Niklas Ulvinge

    'One of the few things that is
    language independent is the idea'

  • mr_orchemr_orche Member Posts: 12
    : : I need to know if there is any way to make QBASIC 4.5 scan the contents of a folder in windows and print all of the files in a folder
    : : for example
    : :
    : : C:desktopw.something
    : : C:desktoph.something
    : : C:desktopa.something
    : : C:desktop .something
    : : C:desktope.something
    : :
    : : im sure it must be possible but I just dont know.
    : : please if anyone can help me, let me know.
    : :
    : :
    : Use SHELL "DIR"
    :
    : The PROgrammer Niklas Ulvinge
    :
    : 'One of the few things that is
    : language independent is the idea'


    source program here will list all of the content of the "FOLDER", the result will be saved to "RESULT.TXT"
    SHELL "DIR FOLDER*.* /A:-D/O:N > RESULT.TXT" 'files only

    or
    SHELL "DIR FOLDER*.* /A:D/O:N > RESULT.TXT" 'folders only

    or
    SHELL "DIR FOLDER*.* /A/O:N > RESULT.TXT" 'files and folders





  • IDKIDK Member Posts: 1,784

    : SHELL "DIR FOLDER*.* /A:-D/O:N > RESULT.TXT" 'files only

    Nice :-D!!

    You could read about all posible combinations in a standard dos manual.


    [b]Niklas Ulvinge[/b] [white]aka [b]IDK[/b][/white]

Sign In or Register to comment.