المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : STOR command



C# Programming
04-23-2009, 10:41 AM
Dear All,
I am using STOR fileName command to upload file to remote ftp server via c#.
it always upload the file to the root / directory.
not the directory which i am connected to.
what is my problem here?
I am creating socket then sending this command to the socket
sendCommand("STOR "+Path.GetFileName(fileName));

but y it doesent upload the file to correct path (remote directory not root directory).

Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan