Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / DosCommand help
  RSS 2.0 ATOM  

DosCommand help
Rate this thread
 
63483
 
Permlink of this thread  
avatar
  • jpepper
  • Posted: 11 January 2012 04:27 AM
  • Total Posts: 40
  • Joined: 07 July 2011 04:58 PM

Trying to remove a directory I made inside max.
Not sure why its not removing it.  I’ve tried something similar outside of max and it worked.

doscommand "rmDir C:/Program Files/Autodesk/3ds Max 2012/Scripts/MyTools /s /q"


max2010-2012 windows xp64bit
nvidia QuadroFX

Replies: 1
/img/forum/dark/default_avatar.png

that s’d works—

doscommand "rmDir \"C:\\Program Files\\Autodesk\\3ds Max 2012\\Scripts\\MyTools\\\" /s /q"

(forum display it on 2 but its a 1 line of code)

Author: Anubis

Replied: 11 January 2012 04:40 AM  
avatar
  • jpepper
  • Posted: 11 January 2012 04:53 AM

Yes just after I posted this I figured out I was missing the extra slash to tell the dos prompt the entire string

(
DOSCommand "rmdir \"C:\Program Files\Autodesk\3ds Max 2012\Scripts\MyTools\" /s /q"
)

Thanks



max2010-2012 windows xp64bit
nvidia QuadroFX

Replies: 0