function CreateImage() { var Image = new ActiveXObject( "StarBurnX.JolietImage" ); var Root= Image.Root; Root.CreateNewFolder("New Folder"); Image.Build(0,"Test","JavaScript"); return Image; } var x=CreateImage(); var c = new ActiveXObject( "StarBurnX.SimpleCallback" ); x.SaveImageToFile("c:\111.iso",c); WScript.Echo('Saved!');