OS Commands
-
There is a File.copy command already - unless Christoph hasn't merged my pull request yet
-
@d-healey syntax?
tried
myFile.copy(myDestinationString)
LoopPlayers.js (83): function not found :-(
-
@d-healey -- when did you make the pull request - last I can see from you was the tablelaf stuff on June 14
Hang on found it Aug 14.... dont think its been merged...
@Christoph-Hart any chance??
-
@Lindon I think I've already used that function... I'll take a look when I'm back home
-
@Lindon Ah, the only one I used was startAsProcess. (no copy)
const appData = FileSystem.getFolder(FileSystem.AppData); const manual = appData.getChildFile("MyProduct.pdf"); inline function onbtnManualControl(component, value) { if (value) manual.startAsProcess(""); }; Content.getComponent("btnManual").setControlCallback(onbtnManualControl);
My mistake...
-
@Lindon To follow up on your commandPrompt thing.
When you use the
copy
command in the terminal you're actually running a program calledcopy
(on MacOS and Linux it'scp
).So instead of getting a file object that references the command prompt program you'd want to get a reference to the
copy
program. -
@d-healey said in OS Commands:
@Lindon To follow up on your commandPrompt thing.
When you use the
copy
command in the terminal you're actually running a program calledcopy
(on MacOS and Linux it'scp
).So instead of getting a file object that references the command prompt program you'd want to get a reference to the
copy
program.yes I get that - its just finding "copy.exe" on windows...
-
@Lindon ok found --- but not good news....
xcopy = FileSystem.fromAbsolutePath("C:\Windows\System32\xcopy.exe"); Console.print("Is file:" + xcopy.isFile());
Tells me this is not a real file as far as HISE is concerned
-
@Lindon Maybe it's a permission thing. Just use my fork, or merge that pull request into your own fork.
-
@d-healey --yeah thats what im thinking I will have to do when I get to that part of the process... unless @Christoph-Hart has done the pull by then...