Помощь - Поиск - Пользователи - Календарь
Полная версия: Execute Command Prompt in given directory
UoKit.com Форумы > Кликер > UO Pilot
neves
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
Код
--lua
exec([[cmd.exe /K cd /d "C:\Windows\Cursors"]])
neves
Спасибо!
Цитата(cirus @ 21.3.2020, 1:08) *

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


Это текстовая версия — только основной контент. Для просмотра полной версии этой страницы, пожалуйста, нажмите сюда.
Русская версия Invision Power Board © 2001-2024 Invision Power Services, Inc.