Quote from nikyred on November 23, 2022, 6:14 pmHello,
I'm developing a software that has to write a result on a .txt file located in a server of my company.
In the server folder, my account has read and write permissions. But when I run the software I created with Visual neo Win, running on the PC where I have access to the server, my program can only read but not write. Why does this happen?
Thank you
Hello,
I'm developing a software that has to write a result on a .txt file located in a server of my company.
In the server folder, my account has read and write permissions. But when I run the software I created with Visual neo Win, running on the PC where I have access to the server, my program can only read but not write. Why does this happen?
Thank you

Quote from nikyred on November 24, 2022, 10:11 amThanks for the advice.
I don't have to transfer a file but I have to do an "Append" on a .txt file on the server.
Could this plugin still do for me?
Thanks for the advice.
I don't have to transfer a file but I have to do an "Append" on a .txt file on the server.
Could this plugin still do for me?


Quote from DaviddeArgentina on November 24, 2022, 6:55 pm@nikyred,
Take a look of:
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ftp
It has always been in all versions of windows and does the job like a charm...
Greetings from Buenos Aires,
David de Argentina
Take a look of:
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ftp
It has always been in all versions of windows and does the job like a charm...
Greetings from Buenos Aires,
David de Argentina

Quote from DaviddeArgentina on November 24, 2022, 7:04 pm@nikyred,
Another simple way to append a file is using PHP
Check this webpage:
https://www.w3schools.blog/php-append-file
Cheers,
David de Argentina
Another simple way to append a file is using PHP
Check this webpage:
https://www.w3schools.blog/php-append-file
Cheers,
David de Argentina
Quote from Gaev on November 24, 2022, 8:19 pm@nikyred
How about this ? ...
a) use fmConnectLocal and fmConnectRemote to establish your connections on the PC and Server
b) use fmCopyFrom to read your file on the server to [TempDir] on your PC
c) use FileRead (or FileToVar) to read the contents of this file into a variable
d) use FileWrite to rewrite the contents of the variable to the [TempDir] file (specify "Append" for "line number parameter")
e) use fmCopyTo to upload the updated file in the [TempDir] to your server location
That's all :-)
How about this ? ...
a) use fmConnectLocal and fmConnectRemote to establish your connections on the PC and Server
b) use fmCopyFrom to read your file on the server to [TempDir] on your PC
c) use FileRead (or FileToVar) to read the contents of this file into a variable
d) use FileWrite to rewrite the contents of the variable to the [TempDir] file (specify "Append" for "line number parameter")
e) use fmCopyTo to upload the updated file in the [TempDir] to your server location
That's all :-)

Quote from HPW on November 25, 2022, 8:15 amHello,
I would guess that there is a right problem.
Have you tried to run your Exe "run as administator".
In the past I had no problems to write to log files on a server.
And which OS version?
And what kind of server? NT-Server?
And show your code line which fails.
Regards
Hans-Peter
Hello,
I would guess that there is a right problem.
Have you tried to run your Exe "run as administator".
In the past I had no problems to write to log files on a server.
And which OS version?
And what kind of server? NT-Server?
And show your code line which fails.
Regards
Hans-Peter
Quote from nikyred on November 28, 2022, 1:56 pmThanks everyone for the replies,
My NAS server doesn't work in FTP, so I can't work with the suggested Plugin.
I haven't tried running the app as an admin, I will try and give you feedback.
Thank you
Thanks everyone for the replies,
My NAS server doesn't work in FTP, so I can't work with the suggested Plugin.
I haven't tried running the app as an admin, I will try and give you feedback.
Thank you
Quote from nikyred on November 28, 2022, 7:03 pmI tried running the application in administrator mode but I can only read the file but not write.
If I try to write the file manually I can do it.
my account has read and write permissions, but the application can't write.
I tried running the application in administrator mode but I can only read the file but not write.
If I try to write the file manually I can do it.
my account has read and write permissions, but the application can't write.

Quote from DaviddeArgentina on November 28, 2022, 8:08 pm@nikyred
Move (and set) the file to Documents folder.
My 0.01
David de Argentina
Move (and set) the file to Documents folder.
My 0.01
David de Argentina
Quote from nikyred on November 30, 2022, 10:12 am@nikired
Sposta (e imposta) il file nella cartella Documenti.
Il mio 0.01
Davide dell'Argentina
Excuse me I do not understand.
@nikired
Sposta (e imposta) il file nella cartella Documenti.
Il mio 0.01
Davide dell'Argentina
Excuse me I do not understand.

Quote from CN_Iceman on December 6, 2022, 11:42 amQuote from nikyred on November 28, 2022, 1:56 pmThanks everyone for the replies,
My NAS server doesn't work in FTP, so I can't work with the suggested Plugin.
I haven't tried running the app as an admin, I will try and give you feedback.
Thank youHi.
Does your NAS have SMB service activated?
Also, File Service for Microsoft Networks must be enabled.
Can you access your folders on the NAS with your username? For example: \\NAS_FILE_SERVER\My_Files
Try copying a file: Copy "G:\Backups\Today_Files\*.*" "\\NAS_FILE_SERVER\My_Files\G_Disk\Backups\Today_Files"
Greetings.
Quote from nikyred on November 28, 2022, 1:56 pmThanks everyone for the replies,
My NAS server doesn't work in FTP, so I can't work with the suggested Plugin.
I haven't tried running the app as an admin, I will try and give you feedback.
Thank you
Hi.
Does your NAS have SMB service activated?
Also, File Service for Microsoft Networks must be enabled.
Can you access your folders on the NAS with your username? For example: \\NAS_FILE_SERVER\My_Files
Try copying a file: Copy "G:\Backups\Today_Files\*.*" "\\NAS_FILE_SERVER\My_Files\G_Disk\Backups\Today_Files"
Greetings.