// Took directly from ref.
verb/direction(Path as text)
shell("dir [Path] > dir.out")
usr << file2text("dir.out")
Problem description:
That is from the ref. but the output '>' doesn't seem to be working. Anyone know why?
I was looking around and found something called ANSI escape sequences or something like that. I wanted to send ANSI escape sequences to a telnet user from byond. Anyone know if this is possible?
I managed a work around in ds but it allows for too little security. In order to display the ANSI you open a command prompt and then enter the escape sequences. But the command prompt also has the potential to delete your files.
In order to manage the work around I had to fool with the shell command, of course. Well I came along something interesting that could be useful in my RealTimeEditor, but I am not sure if I should use it because of the whole delete file thing.
text2file("..\\dm telnetdemo > dir2.out","dir.in")
shell("command.com < dir.in > dir.out")
usr << file2text("dir.out") // dir.out holds only the command line information.
usr << file2text("dir2.out") // Only holds the returned results of the command in dir.in
It allows the results of compiling to be transmitted to a file by using the command.com as the. Actually, I have no idea what is going on. Can anyone fill me in?
Thanks