|
Posted by jodleren on 06/21/07 11:13
Hi all!
I have been using opendir and scandir, but I want to try something
else.
Idea: using dir, and a) getting the result b) saving it as a file.
As I have problems with executing files directly, it create a bat file
and executes that.
I can execute command, but by some reason I dont get any response (it
should return something, and I get "")
The missing response is why I create a file.
I create the file on the network ( \\server\somewhere ) like this
dir "\\server\somewhere\filesdir\" >"\\server\somewhere\result.txt"
Here is the odd thing: dir cannot read from the network - the bat file
is created there, it creates the result.txt file, but emtpy as it
cannot read from the network. Reading from c:\ and it works.
Did I miss something here?
BR
Sonnich
[Back to original message]
|