ntvdm holding files we want to delete

We are using sql agent to run some bats files.  These bat files to some creating and deleting of files.  We are having a problem when those file are said to being held by "ntvdm".  Our bat files work fine from command prompt and they seem to work fine from NT scheduler which we a starting to use.

Has anyone noticed sql agent has any issues with deleting of files thrus bat file?
seamus2003Asked:
Who is Participating?
 
sunilcomputerConnect With a Mentor Commented:
0
 
dcliveCommented:
NTVDM would run to allow a DOS program to execute.  Are you running any DOS programs?  Those .BAT files kick off 16-bit DOS apps?  Are any hanging?
0
 
Joseph NyaemaIT ConsultantCommented:
Tried using he following dyntax

cmd.exe /K "del c:\temp\*.* /-P"
0
All Courses

From novice to tech pro — start learning today.