Windows Task Scheduler - Task Won't Die -


i have task scheduled run daily executes .bat file , have checked options ending task after hour , forcing stop if not end when requested to, runs indefinitely until manually kill it. ideas? (i not want use pskill in script). script below:

sqlcmd -s myserver -u username -p password _q "backup database x y" net use z: "\\server1\project" cd c:\trial1 copy * "z:\backups" net use z: /delete exit 

thanks hans passant answer! see below:

taking away 'net use' , directly copying server cleared error task scheduler getting stuck on.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -