mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-27 08:50:01 +00:00
14 lines
488 B
JavaScript
14 lines
488 B
JavaScript
a = new ActiveXObject("scripting.filesystemobject")
|
|
x = new ActiveXObject("wscript.shell")
|
|
|
|
for (b = new Enumerator(a.GetFolder("build\\X").subfolders); !b.atEnd(); b.moveNext())
|
|
{
|
|
for (c = new Enumerator(b.item().subfolders); !c.atEnd(); c.moveNext())
|
|
{
|
|
x.run('cmd /c move build\\X\\' + b.item().name + '\\' + c.item().name + ' build\\X', 0, 1)
|
|
}
|
|
|
|
x.run('cmd /c move build\\X\\' + b.item().name + '\\* build\\X', 0, 1)
|
|
x.run('cmd /c rd build\\X\\' + b.item().name, 0, 1)
|
|
}
|