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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -