NifWriteToDisk
This is a command from NifSE.
This function is for debugging purposes only. It is not included in non-debug builds of NifSE, and should never be included in released mods. This function produces a permanent file on the user's hard-drive, and NifSE has no method of deleting that file once created.
Syntax
(bool:success) NifWriteToDisk string:filepath short:nifID
Writes the (possibly edited) NIF to disk at the indicated location. The filepath is relative to the Data\Meshes\ folder. Do not write use this to write a NIF to the ni\ temporary directory. Especially do not pass the result of NifGetPath to this function, or else no further changes to the NIF will ever appear (as Oblivion will see the version you wrote to the disk and never look for NifSE's virtual version). This function can and will overwrite models already found at that location.
The purpose of this function is to allow you to inspect the NIF in NifSkope or similar, so you can double-check that everything is being affected as you want it to. The file may be deleted manually after you have inspected it.