Announcement

Collapse
No announcement yet.

batch files

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • batch files

    I'm trying to make a batch file on my server which will search all my users home drives for .exe files and then delete them but can't seem to get it to work. Ive checked the dos names for the directories and they seem to match up but the code doesn't run. any ideas?

    my file/code is below




    if exist "F:\DATAST~1\ADMINI~3\*.exe" del "F:\DATAST~1\ADMINI~3\*.exe"

  • #2
    I maybe wrong but can you not run the command del *.exe /s from the parent directory?

    Comment

    Working...
    X