Excuting MSDOS Commands from within a template.

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. ;-)
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
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

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Thanks bigcajones,

A batch file does the trick. :D
 

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
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?
 

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
Don't need to use a batch file. Use cmd.exe instead.

Код:
"cmd.exe" /C MOVE test.txt test2.txt
;-)
 

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