ID:264290
 
Ok, so I'm wanting to create a proc that can determine what files are within a game's directory. The most straightforward way I saw to do this was to use the shell() command coupled with dir, just like the example it gives you in the help file.

mob/verb/dirverb(Path as text)
shell("dir [Path] > dir.out")
usr << file2text("dir.out")


My problem? It doesn't work. At all. For whatever reason, the sample command gives me no output whatsoever, which has confused me greatly. I'm running this in trusted mode and still no dice. When I input the commands myself in DOS, they work fine though.

Can anyone help?
Perpetr8r the Perpetu8r wrote:
Ok, so I'm wanting to create a proc that can determine what files are within a game's directory. The most straightforward way I saw to do this was to use the shell() command coupled with dir, just like the example it gives you in the help file.

> mob/verb/dirverb(Path as text)
> shell("dir [Path] > dir.out")
> usr << file2text("dir.out")
>

My problem? It doesn't work. At all. For whatever reason, the sample command gives me no output whatsoever, which has confused me greatly. I'm running this in trusted mode and still no dice. When I input the commands myself in DOS, they work fine though.

Can anyone help?



flist("PATH:/") :)
In response to Inuyashaisbest
I'll try that, thanks.