Am1
Guest
|
Post by Am1 on Sept 30, 2018 16:14:52 GMT 1
Hi -
I am attempting to use a 16-bit program to generate a list of files and send it to a *.txt file using the ">" command. While it will generate it on the screen; and it appears to work, no file is generated. Any ideas?
Thank you!
|
|
|
Post by Jos on Sept 30, 2018 20:42:56 GMT 1
Your program calls the command shell with something like “DIR *.* >dir.txt”, but the file list is displayed instead of written to dir.txt?
Jos
|
|
Herman
Guest
|
Post by Herman on Oct 22, 2018 12:47:28 GMT 1
Jos,
If I do that then I get in my tekstfile:
Volume in drive C is C_DRIVE Volume Serial Number is 104C:0A77 Directory of C:\GENEALOG. <DIR> 22-10-18 13:16.. <DIR> 22-10-18 13:16AGENDA DBF 745 18-10-18 14:38AGENDA EXE 2581277 18-10-18 14:47AGENDA MAP 6911 18-10-18 14:47AGENDA MDX 66560 18-10-18 14:38AGENDA PRG 17573 18-10-18 14:42AKTEFOTO DBF 10875246 18-10-18 15:21
and so one, while I expect this in Windows kladblok in ""normal"" way:
Volume in drive C is C_DRIVE Volume Serial Number is 104C:0A77 Directory of C:\GENEALOG
. <DIR> 22-10-18 13:16 .. <DIR> 22-10-18 13:16 AGENDA DBF 745 18-10-18 14:38 AGENDA EXE 2581277 18-10-18 14:47 AGENDA MAP 6911 18-10-18 14:47 AGENDA MDX 66560 18-10-18 14:38 AGENDA PRG 17573 18-10-18 14:42 AKTEFOTO DBF 10875246 18-10-18 15:21
Regards Herman
|
|
|
Post by bluepukeko on Jan 4, 2019 5:39:54 GMT 1
Hi, I've got the same "problem" We are running a very old version of basic, probably from an MSDOS system. We call from the basic program a sort using < to direct input from a file and > to direct output to a file. Have found that provided we give the full path name the input works fine, but we can't capture the output. Does vdos allow for standard output to be redirected to a file, and if so how do we do so.
|
|
|
Post by Jos on Jan 4, 2019 8:25:33 GMT 1
Hermans problem was that vDos appends single linefeeds instead of linefeeds/carriage return combinations with the DIR command.
vDos should support redirecting standard i/o, but I wouldn’t be surprised it has some issues.
Can’t you just use for instance Windows SORT with: CMD /c sort <Windows path input file> /O <Windows path output file>
Jos
|
|