View Full Version : query disk space with system command
katisss 11-30-2007, 09:29 AM Can i query the disk space with system command from mel?
|
|
GiantG
11-30-2007, 12:21 PM
string $dir = `system ("dir")`;
string $buffer[];
tokenize($dir,"\n",$buffer);
tokenize($buffer[size($buffer)-2],",",$buffer);
tokenize($buffer[1]," ",$buffer);
string $result = substituteAllString($buffer[0], ".", "");
print ($result + " " + $buffer[1]);
That' s for the Directory of your open file
Greetz..
katisss
11-30-2007, 03:03 PM
thank you a lot.
GiantG
12-01-2007, 12:07 PM
Found out that was for Vista.
Windows XP uses some other "dir" formating.
So this is for XP:
string $dir = `system ("dir")`;
string $buffer[];
tokenize($dir,"\n",$buffer);
tokenize($buffer[size($buffer)-2],",",$buffer);
tokenize($buffer[0]," ",$buffer);
string $result = substituteAllString($buffer[2], ".", "");
print ($result + " " + $buffer[3]);
katisss
12-01-2007, 03:22 PM
double post
katisss
12-01-2007, 03:33 PM
nevermind, i re-did the tokenize part anyways. How is maya on vista?
GiantG
12-01-2007, 06:28 PM
Vista itself sucks, but maya runs smooth ;)
katisss
12-04-2007, 12:23 PM
I 've been told about poor OpenGL support but never tried.
Can you do me a favour? What does vista return when queried:
about -os;
CGTalk Moderation
12-04-2007, 12:23 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.