Quantcast
Channel: Security forum
Viewing all articles
Browse latest Browse all 12072

Access denied message in BAT log folder

$
0
0

Hello All,

We have this issue while running Batch jobs in one of our servers.

When running this particular batch file, it is supposed to send a log to a file called "doDaily.log"

This is how the variable is set:

set samplelog=\\%COMPUTERNAME%\scripts$\batchJobs\logs\doDaily.log

When we run the script we get the message "access is denied" and so it does not create a log, however, if we give the path

set samplelog=e:\scripts$\batchJobs\logs\doDaily.log  it creates a log.

Is there something wrong with the varaible or do we need to do anything with the path?

NOTE: It runs fine in another server.

Thank you


Viewing all articles
Browse latest Browse all 12072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>