Scripting does not work as hoped, V24.10
Posted: 12 Mar 2023 22:04
Trying to do a simple Script to backup my Arduino files.
First problem is double clicking on my script file "CopyArduino.xys" in the XYplorer Scripts Folder does nothing, Windows does not know what file to associate this file with to run it.
I was hoping to put a link to the script on the toolbar.
Next problem is the script will not run;
copy "C:\GCB@Syn\Arduino IDE\TPSRPMBRKDisplay\TPSRPMBRKDisplay.ino|J:\GCB@Syn\Arduino IDE\TPSRPMBRKDisplay\TPSRPMBRKDisplay.ino";
copy "C:\GCB@Syn\Arduino IDE\SRTCrankSim\SRTCrankSim.ino|J:\GCB@Syn\Arduino IDE\SRTCrankSim\SRTCrankSim.ino";
open "C:\Program Files (x86)\Metapad\metapad.exe"
Next problem is after updating the script, it will not load the updated version;
copy "C:\GCB@Syn\Arduino IDE\TPSRPMBRKDisplay\TPSRPMBRKDisplay.ino|J:\GCB@Syn\Arduino IDE\TPSRPMBRKDisplay\TPSRPMBRKDisplay.ino";
copy "C:\GCB@Syn\Arduino IDE\SRTCrankSim\SRTCrankSim.ino|J:\GCB@Syn\Arduino IDE\SRTCrankSim\SRTCrankSim.ino";
Next problem is if I clear the Script Dialog box and Load Script File... it does not load the file I selected CopyArduino.xys
Note; that the last line in the file is not in the Script Dialog box - open "C:\Program Files (x86)\Metapad\metapad.exe" even though I ran Load Script File... repeatedly.
If I shutdown XYplorer and restart, same problem.
However, if I manually put - open "C:\Program Files (x86)\Metapad\metapad.exe" - into the Script Dialog box, it will run the file "metapad.exe".
Really would like to create a script file that will copy numerous files and be able to place a link on the toolbar so one click will run it. Was hoping XYplorer scripting will do that.
First problem is double clicking on my script file "CopyArduino.xys" in the XYplorer Scripts Folder does nothing, Windows does not know what file to associate this file with to run it.
I was hoping to put a link to the script on the toolbar.
Next problem is the script will not run;
copy "C:\GCB@Syn\Arduino IDE\TPSRPMBRKDisplay\TPSRPMBRKDisplay.ino|J:\GCB@Syn\Arduino IDE\TPSRPMBRKDisplay\TPSRPMBRKDisplay.ino";
copy "C:\GCB@Syn\Arduino IDE\SRTCrankSim\SRTCrankSim.ino|J:\GCB@Syn\Arduino IDE\SRTCrankSim\SRTCrankSim.ino";
open "C:\Program Files (x86)\Metapad\metapad.exe"
Next problem is after updating the script, it will not load the updated version;
copy "C:\GCB@Syn\Arduino IDE\TPSRPMBRKDisplay\TPSRPMBRKDisplay.ino|J:\GCB@Syn\Arduino IDE\TPSRPMBRKDisplay\TPSRPMBRKDisplay.ino";
copy "C:\GCB@Syn\Arduino IDE\SRTCrankSim\SRTCrankSim.ino|J:\GCB@Syn\Arduino IDE\SRTCrankSim\SRTCrankSim.ino";
Next problem is if I clear the Script Dialog box and Load Script File... it does not load the file I selected CopyArduino.xys
Note; that the last line in the file is not in the Script Dialog box - open "C:\Program Files (x86)\Metapad\metapad.exe" even though I ran Load Script File... repeatedly.
If I shutdown XYplorer and restart, same problem.
However, if I manually put - open "C:\Program Files (x86)\Metapad\metapad.exe" - into the Script Dialog box, it will run the file "metapad.exe".
Really would like to create a script file that will copy numerous files and be able to place a link on the toolbar so one click will run it. Was hoping XYplorer scripting will do that.