This basically relates to Batch processing. A step in the batch process involves an exploration, results of which are exported to csv file. This file I intend to use as an import file for another database. Now by default it can export to a .csv but instead I want an extension say .xyz. Here xyz is a format type. Since this is an intermediate step, it’s essential as an automatic process.
As for normal excel, it allows you to save in a different extension even though the file type remains as csv
The Dos/Windows “rename” command allows only to rename files in the same folder (note that in the above example, only the first parameter has the full path specification).
See this link for additional documentation and examples on how to use cmd.exe
Well it may seem a bit "newbie", but thought maybe this would help
I wanted to add a second level of automation wherein I used an external program (7zip) that works on cmd. I wish to put in a few screenshots:
First is the long hand way of extraction through the cmd
The second is the requirement of 7za.exe to be put in Amibroker folder under Program files (It being the default directory from where the cmd is triggered.
The third step involves Execute and wait:
cmd.exe /c 7za e "C:\Users\PSK\Downloads\EOD Files\SEOD.zip" -o"C:\Users\PSK\Downloads\EOD Files"
The first quotes being the path to zip file and second quoted indicating the output directory
The same would trigger a window in overwrite