Is it possible to delete all files in a specific folder with the 'Shell Command' Module ?
If Yes, How ?
Thank you.
Shell Command
enter the command
in the command line?
Code: Select all
del C:"my folder"*.* /QOlivier Sens
www.brainmodular.com
www.brainmodular.com
Personally, I create .CMD files that I call from the shell module, but that's just me. As long as there's only one command needed, you should be able to do everything that's possible from the command line in Windows from within Usine also.
Try the del command with <drive><path><filename.extension>; eg
or
The /F and /Q switches forces deletion of read-only files, and "quiet mode" (no prompting for confirmation using global wildcard *.*) respectively.
I'm not totally sure whether the switches may differ between languages (but I don't think so). In case you have a non-English Window installation, have a look at the options for the del command by entering cmd in the Start/Run dialog box, and at the prompt in the command window that should pop up, type "del /?" which lists the available switches.
[EDIT]: Senso beat me to it, aaarrgghhh!!!
Try the del command with <drive><path><filename.extension>; eg
Code: Select all
"del C:tempaudio*.*".Code: Select all
"del C:tempaudio*.* /F /Q".I'm not totally sure whether the switches may differ between languages (but I don't think so). In case you have a non-English Window installation, have a look at the options for the del command by entering cmd in the Start/Run dialog box, and at the prompt in the command window that should pop up, type "del /?" which lists the available switches.
[EDIT]: Senso beat me to it, aaarrgghhh!!!
Bjørn S
OK. Thank you very much, but that is what i tried to do, but nothing happens !!
This is the code that i wrote in the command line of Shell Module
This is the code that i wrote in the command line of Shell Module
But nothing is deleting ....code :
del D:Audio ProdUsine RecordEssai 1*.* /Q
don't forget quotes (") especially if your path contains space characters.
try
try
TO BSORK: the DOS language is universal and the syntax is is the same whatever the country.code :
del D:"Audio Prod""Usine Record""Essai 1"*.* /Q
Olivier Sens
www.brainmodular.com
www.brainmodular.com
It is OK if i create a '.cmd' file, but it don't delete the file if i write the command in the command line of the shell module.
So i made a 'del.cmd' file with the code :
Thank you.
So i made a 'del.cmd' file with the code :
and i call the del.cmd in the command line of the shell moduledel "D:Audio ProdUsine RecordEssai 1*.*" /Q
Like that everythink is ok.D:Audio Prodcommanddel.cmd
Thank you.
Who is online
Users browsing this forum: No registered users and 118 guests
