PDA

View Full Version : file transfer in assembly language via serial port


stonecarvings
10-15-2004, 05:23 AM
i am trying to come up with a program that does the following

1. prints the word 'commands', followed by cursor
2. lists all files in the A:\ directory when user enters 'dir'
3. reads in a filename (from the list) from the user
4. transfers the file (between 2 pcs) via the serial port
5. lights up a LED each time a char is sent or received


as of now i am stuck at 2. i do not know how i can list all the files in the A:\ drive.

can someone help me with that?

i am using assembly language assembled by tasm.

thank you for any help.

Mihail121
10-15-2004, 08:55 AM
Use the FindFirstFile/FindNextFile methods.