Hi,
How can I get information of specific file in remote computer?
I want to get file's status in other computer, this file belongs to shared
directory, I want to get the file size, existanse of the file ...,
When tring to acsess to file or get status it fails, Should I do login to
this computer? if so, how can I do it?
code examples are attached.
Thanks
Yaniv
// example:
if( (_access("\\191.26.58.21\SharedDir\myFile.txt", 0 )) != -1 )
{
printf("file exists");
}
else
{
printf("file not exists");
}
// output:
// file not exists
struct _stat l_StatusBuf;
if(_stat( "\\191.26.58.21\SharedDir\myFile.txt" , &l_StatusBuf ) != -1)
{
printf("got file status");
}
else
{
printf("fail getting file status");
}
// output:
// fail getting file status