Excuting MSDOS Commands from within a template.

  • Автор темы Автор темы BlackSun
  • Дата начала Дата начала

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Реакции
3
Баллы
0
I'd like to move some directories (folders) using a template created in ProjectMaker.

Seems easy enough. Open a MSDOS command line window and use the move command then close the window. :rolleyes:

So far I've only managed to get the MSDOS command line window open. :p

Anyone know how to do this? Or perhaps there's a better way. ;)
 
The best way is to use a batch file with the MOV command inside of it. You can call the bat file from the 'own code' step.
 
  • Спасибо
Реакции: BlackSun
Thanks bigcajones,

A batch file does the trick. :D
 
One problem with running a batch file. Windows keeps popping up a prompt "The publisher could not be verified. Are you sure you want to run this software?"

Any ideas on how to click Run or avoid the prompt altogether?
 
Don't need to use a batch file. Use cmd.exe instead.

Код:
Развернуть Свернуть Копировать
"cmd.exe" /C MOVE test.txt test2.txt
;)
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)