Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am not able to delete the log files when run the execute command from the Script editor window.I think so this due to some security problem???
But when i run the batch file manually,it is working fine.
Within the user properties is the tab security with several options by accessing external files. I think you will need enable the third option.
- Marcus
Thanks for your reply,
but I have already checked that option it was not working
Maybe your execute-statement isn't proper - it should looks like these example:
Execute cmd.exe /C "D:\YOURPATH\ftpDownloadCurrentMonth.bat";
- Marcus
Do you get an error or is it simply doing nothing when launch the EXECUTE statement?
How do you execute this command in your script?
Here is my attached Batch File
Is this second batch file also failing to work when launched from inside a QV script, but ok when launched from the command line?
What is the syntax of your EXECUTE script statement?
Hi Peter,
Execute Cmd.exe /C "DeletingLogs.bat";
You need a full-path.
- Marcus
If this last EXECUTE fails to work, it's probably because of the nested double quotes in the batch file.
..."cmd /c IF @isdir == False xcopy @path ".\Logs1" /D /E /C /R /I /K /Y"
FORFILES has a technique to translate these into their hexadecimal representation.