Версия для печати темы

Нажмите сюда для просмотра этой темы в обычном формате

UoKit.com Форумы _ UO Pilot _ Execute Command Prompt in given directory

Автор: neves 20.3.2020, 17:34

I am wondering if its possible, using the exec() function to run cmd in chosen from me directory.
When I execute this code:

Код
--lua
exec([["cmd"]])

it opens cmd in the folder where the Pilot is located.
Изображение
I tried to run cmd with this command -> cd /d d:\GameFolder.
Код
--lua
exec([["cmd cd /d d:\GameFolder"]])

Nothing happend.

Автор: cirus 21.3.2020, 2:08

Код
--lua
exec([[cmd.exe /K cd /d "C:\Windows\Cursors"]])

Автор: neves 21.3.2020, 2:15

Спасибо!

Цитата(cirus @ 21.3.2020, 1:08) *

Код
--lua
exec([[cmd.exe /K cd /d "C:\Windows\Cursors"]])



Русская версия Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)