acemo
03-02-2006, 07:22 AM
I am trying to read the content of a file, placed on "c:\username.txt"
however, this file is stored on a other compter in the network...
I can manually read the content of the file, using cmd:
type \\192.168.1.101\c$\username.txt
however, when i try this command trough exec:
echo exec('type \\192.168.1.101\c$\username.txt');
it returns nothing...
so, i tested if exec could not use the command type:
echo exec('type c:\username.txt');
however, this did display the content of the local stored file..
how can i read the content of this remote file?
EDIT: replaced "" quotes for '' quotes at the exec commands cuz using $ there.
that didnt solved tho.
however, this file is stored on a other compter in the network...
I can manually read the content of the file, using cmd:
type \\192.168.1.101\c$\username.txt
however, when i try this command trough exec:
echo exec('type \\192.168.1.101\c$\username.txt');
it returns nothing...
so, i tested if exec could not use the command type:
echo exec('type c:\username.txt');
however, this did display the content of the local stored file..
how can i read the content of this remote file?
EDIT: replaced "" quotes for '' quotes at the exec commands cuz using $ there.
that didnt solved tho.