Upon launch of a application batch script, the script tries to output information to a text file on a network share.
I have just found out that some users have write access and some users do not.
I want to be able to test for the person ability to write to that text file.
It appears that the echo command does not return an ERRORLEVEL status.
In unix, the IF command has tests for this type of thing.
Whats an simple and elegant way to do it in batch?
C:\>echo stuff >> no_write_perms_to_this.log
Access is denied.