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
  11 November 2007
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

 
  11 November 2007
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.
 
  11 November 2007
thank you a lot.
__________________
www.lo-motion.de
Realflow forum: http://www.realflowforum.com

 
  12 December 2007
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
 
  12 December 2007
double post
__________________
www.lo-motion.de
Realflow forum: http://www.realflowforum.com


Last edited by katisss : 12 December 2007 at 10:30 AM.
 
  12 December 2007
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.
 
  12 December 2007
Vista itself sucks, but maya runs smooth
__________________
http://www.creativecrash.com/users/sublist/contributions?tab=free_downloads
 
  12 December 2007
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

 
  12 December 2007
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 04:51 AM.


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