If you want to know what THNKR is talking about, check the MEL command reference page in Maya, look at the "file" command. Those are all abbreviations for stuff, eg. "-shn" means "-shortName", which returns just the file name instead of the full path to the scene - quite useful for various naming scripts etc.
thanks guys, it worked like a charm !!! MoP yep that's what i did, I'm a script noob so it didn't really occur to me at first, and yeah super useful for naming :D
Hey Guys! Can you also please help me out.. I have a related query to this. Looks like this command prints the path. but how do I extract the names of folders individually from the path and assign to variables ? I am trying out scripting for the first time to create a certain functionality. Any help in this regard would be…