Page 1 of 1

Open command prompt on a specific directory

Posted: 17 Oct 2020, 09:17
by tehnium
Hi, and thank you for this great software, it really saves me a lot of time.

I need some help with syntax...

1. I want to open cmd to a specific folder, but it it always opens to the system32 location...
elseif (button == string.byte('Z')) then lmc_spawn("cmd", "C:\\Users\\MyName")

2. I want to open cmd to a specific folder and launch a command

Anybody can sugest what the correct syntax?

Re: Open command prompt on a specific directory

Posted: 18 Oct 2020, 20:12
by admin
Isn't it the same request? Set working directory before executing the command.
This is not currently supported, I would need to add it.
Maybe it could be now hacked somehow using batch file with cd command...