Hoping someone might be able to help - or just tell me it can't be done so I stop the endless internet searching!
I have written a batch file to check a file comparison to see what computers have a mismatch. Everything works fine, but I would like to be able to append to a text file on our server so that I can have a list of all the computers that have the mismatch. I have tried any number of permissions, but I just can't seem to gain write access to a folder on the server. So far, I have been using the install folder that I am running the batch file out of, but I have no problem creating a separate folder on any server - just as long as I can get read/write access to it so that the file can be appended.
I am currently using Software Center to deploy the batch file and it is running with Administrative rights. If I check the %USERNAME%, it comes back as the name of the machine followed by a $ (i.e. MY-PC$) so I'm guessing there's some sort of system account being used to execute the batch - but I can't seem to find a way to give that account anything beyond read access to the folder on the server.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hoping someone might be able to help - or just tell me it can't be done so I stop the endless internet searching!
I have written a batch file to check a file comparison to see what computers have a mismatch. Everything works fine, but I would like to be able to append to a text file on our server so that I can have a list of all the computers that have the mismatch. I have tried any number of permissions, but I just can't seem to gain write access to a folder on the server. So far, I have been using the install folder that I am running the batch file out of, but I have no problem creating a separate folder on any server - just as long as I can get read/write access to it so that the file can be appended.
I am currently using Software Center to deploy the batch file and it is running with Administrative rights. If I check the %USERNAME%, it comes back as the name of the machine followed by a $ (i.e. MY-PC$) so I'm guessing there's some sort of system account being used to execute the batch - but I can't seem to find a way to give that account anything beyond read access to the folder on the server.
Any help would be greatly appreciated!
Share this post
Link to post
Share on other sites