Kaseya Community

execute shell command doesn't work.....

  • Hi

    i try to run this command del dir /s *.mp3 using agent procedure > execute shell command. the status of my procedure is success but it doesn't delete the mp3 files. but when i try it in the command line it work. is there something wrong whit my procedure?

  • the command would be del /s *.mp3

  • You need to specify a path to start from. The Execute Shell Command starts in %windir%\system32 (or syswow64 for 64-bit computers) which is where cmd.exe lives. I'm guessing you don't have any MP3 files there.

    Try something like this instead: dir /s "C:\someFolder\*.mp3"