query disk space with system command

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2007   #1
query disk space with system command

Can i query the disk space with system command from mel?
__________________
www.lo-motion.de
Realflow forum: http://www.realflowforum.com

 
Old 11 November 2007   #2
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..
__________________
http://www.creativecrash.com/users/sublist/contributions?tab=free_downloads

Last edited by GiantG : 11 November 2007 at 03:11 PM.
 
Old 11 November 2007   #3
thank you a lot.
__________________
www.lo-motion.de
Realflow forum: http://www.realflowforum.com

 
Old 12 December 2007   #4
fyi

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]);
__________________
http://www.creativecrash.com/users/sublist/contributions?tab=free_downloads
 
Old 12 December 2007   #5
double post
__________________
www.lo-motion.de
Realflow forum: http://www.realflowforum.com


Last edited by katisss : 12 December 2007 at 10:30 AM.
 
Old 12 December 2007   #6
nevermind, i re-did the tokenize part anyways. How is maya on vista?
__________________
www.lo-motion.de
Realflow forum: http://www.realflowforum.com


Last edited by katisss : 12 December 2007 at 05:04 PM.
 
Old 12 December 2007   #7
Vista itself sucks, but maya runs smooth
__________________
http://www.creativecrash.com/users/sublist/contributions?tab=free_downloads
 
Old 12 December 2007   #8
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;
__________________
www.lo-motion.de
Realflow forum: http://www.realflowforum.com

 
Old 12 December 2007   #9
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:22 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.