Login | Register 
Products Applications Downloads Features Wiki forum Store
 

system command not working?

General discussion about anything TouchDesigner

system command not working?

Postby dani » Wed Dec 01, 2010 10:37 pm

I've set my preferences, even exited and re-entered.

but when I type from the textport:

system dir

or
system echo
or whatever other dos command, I get:

Textport (Line 0 - ): Error executing system command.


is it broken?
dani
 
Posts: 1017
Joined: Wed Nov 14, 2007 1:16 pm

Re: system command not working?

Postby mattd » Mon Dec 27, 2010 3:59 am

I was having the same problem, but I had omitted the cmd /c.
The docs are the source of the confusion:

system dir \"C:\\Program Files\"

does not work. It's

system "cmd /c dir"
Last edited by mattd on Mon Dec 27, 2010 8:12 am, edited 1 time in total.
mattd
 
Posts: 83
Joined: Thu Nov 15, 2007 5:33 pm

Re: system command not working?

Postby Achim » Mon Dec 27, 2010 6:13 am

not sure, but i think you have to use
system cmd yourcommand
User avatar
Achim
 
Posts: 1505
Joined: Wed Nov 14, 2007 12:52 pm

Re: system command not working?

Postby Sheff » Tue Feb 07, 2012 4:38 pm

Is it possible to make a directory with system command?

I figured out that commands like

system netstat
system msinfo32

are working. But "md", "cd" and others commands seems not to work or i don't know how to use them correctly... please help to understand it.
User avatar
Sheff
 
Posts: 112
Joined: Wed May 26, 2010 5:45 pm

Re: system command not working?

Postby rodberry » Wed Feb 08, 2012 3:19 am

try system "cmd /c mkdir BLARPH"
User avatar
rodberry
 
Posts: 901
Joined: Wed Nov 14, 2007 1:51 pm
Location: Hobart, Tasmania, Australia

Re: system command not working?

Postby Sheff » Wed Feb 08, 2012 5:47 am

What is the purpose of "/c"
User avatar
Sheff
 
Posts: 112
Joined: Wed May 26, 2010 5:45 pm

Re: system command not working?

Postby rodberry » Sat Jul 28, 2012 10:52 pm

the /c after cmd lets the cmd window stay open just long enough to do its thing then close once done. this stops touch from locking up while it waits for the cmd to finish.

sorry for the very late reply. :)
User avatar
rodberry
 
Posts: 901
Joined: Wed Nov 14, 2007 1:51 pm
Location: Hobart, Tasmania, Australia


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: jacobite and 2 guests