Open command prompt on a specific directory

Announcements, questions
Post Reply
tehnium
Posts: 1
Joined: 17 Oct 2020, 08:12

Open command prompt on a specific directory

Post by tehnium » 17 Oct 2020, 09:17

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?

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Open command prompt on a specific directory

Post by admin » 18 Oct 2020, 20:12

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...
Petr Medek
LUAmacros author

Post Reply