Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

.bat not working in windows2008R2 scheduled tasks

$
0
0

Hi All,

I have created .bat file to call .ps1 in scheduled tasks ,if I run file from folder it working ok but in scheduled it is not working content of .bat file is given below :

D:>cd Script
powershell -command ./delete.ps1"


Thanks, Sandeep Lahange


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

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