@echo off
if NOT %1XXYZZ == XXYZZ goto Check2
echo Target directory not specified
echo Syntax:  move_unused_scripts <db_or_gamedata_dir>
echo ... See the docs! 
goto BatchMoveEnd

:Check2
if EXIST %1\ goto CheckMoveUnused
echo Target directory not found - %1
goto BatchMoveEnd

:CheckMoveUnused
if EXIST %1\scripts\ goto MoveUnused
echo Target '%1\' directory doesn't have a scripts\ subdirectory
goto BatchMoveEnd

:MoveUnused
rem @echo on
echo Moving unused vanilla scripts...
mkdir %1\scripts\unused\

move %1\scripts\.script %1\scripts\unused\
move %1\scripts\_test.script %1\scripts\unused\
move %1\scripts\_test_aura.script %1\scripts\unused\
move %1\scripts\_test_aura_2.script %1\scripts\unused\
move %1\scripts\a1.script %1\scripts\unused\
move %1\scripts\a2.script %1\scripts\unused\
move %1\scripts\a3.script %1\scripts\unused\
move %1\scripts\agro.script %1\scripts\unused\
move %1\scripts\alife_test.script %1\scripts\unused\
move %1\scripts\andy_test.script %1\scripts\unused\
move %1\scripts\anomaly.script %1\scripts\unused\
move %1\scripts\anomaly_player.script %1\scripts\unused\
move %1\scripts\arbug.script %1\scripts\unused\
move %1\scripts\avi_start.script %1\scripts\unused\
move %1\scripts\a_task_1.script %1\scripts\unused\
move %1\scripts\a_task_1_end.script %1\scripts\unused\
move %1\scripts\a_task_2.script %1\scripts\unused\
move %1\scripts\a_task_2_end.script %1\scripts\unused\
move %1\scripts\a_task_3.script %1\scripts\unused\
move %1\scripts\a_task_3_end.script %1\scripts\unused\
move %1\scripts\bug7.script %1\scripts\unused\
move %1\scripts\bug_test.script %1\scripts\unused\
move %1\scripts\car.script %1\scripts\unused\
move %1\scripts\ce_new_attachable_item.script %1\scripts\unused\
rem not sure about this one
move %1\scripts\ce_new_game_dm.script %1\scripts\unused\
move %1\scripts\chugai_items.script %1\scripts\unused\
move "%1\scripts\copy of a1.script" %1\scripts\unused\
move "%1\scripts\copy of _test.script" %1\scripts\unused\
move %1\scripts\d1.script %1\scripts\unused\
move %1\scripts\dbg_test.script %1\scripts\unused\
move %1\scripts\deadcity_dialog.script %1\scripts\unused\
move %1\scripts\deadcity_tasks.script %1\scripts\unused\
move %1\scripts\debug_test.script %1\scripts\unused\
move %1\scripts\del.script %1\scripts\unused\
move %1\scripts\del2.script %1\scripts\unused\
move %1\scripts\del_izlom.script %1\scripts\unused\
move %1\scripts\del_test.script %1\scripts\unused\
move %1\scripts\del_trader.script %1\scripts\unused\
move %1\scripts\dog_look1.script %1\scripts\unused\
move %1\scripts\enable.script %1\scripts\unused\
move %1\scripts\enemy.script %1\scripts\unused\
move %1\scripts\esc_test.script %1\scripts\unused\
move %1\scripts\escape_heli.script %1\scripts\unused\
move %1\scripts\escape_patrol2.script %1\scripts\unused\
move %1\scripts\escape_raid.script %1\scripts\unused\
move %1\scripts\escape_raid_heli.script %1\scripts\unused\
move %1\scripts\escape_raids.script %1\scripts\unused\
move %1\scripts\escape_sound_events.script %1\scripts\unused\
move %1\scripts\explode_zone.script %1\scripts\unused\
move %1\scripts\freedom.script %1\scripts\unused\
move %1\scripts\fs_test.script %1\scripts\unused\
move %1\scripts\fx_sound.script %1\scripts\unused\
move %1\scripts\game_last.script %1\scripts\unused\
move %1\scripts\game_last_charselect_dlg.script %1\scripts\unused\
move %1\scripts\game_last_cl.script %1\scripts\unused\
move %1\scripts\game_last_dialog.script %1\scripts\unused\
move %1\scripts\game_last_header_wnd.script %1\scripts\unused\
move %1\scripts\game_last_ps.script %1\scripts\unused\
move %1\scripts\game_last_sv.script %1\scripts\unused\
move %1\scripts\game_last_tmp.script %1\scripts\unused\
move %1\scripts\game_last_ui.script %1\scripts\unused\
move %1\scripts\gramofon.script %1\scripts\unused\
move %1\scripts\gulag_deadcity.script %1\scripts\unused\
move %1\scripts\gulag_selo.script %1\scripts\unused\
move %1\scripts\h.script %1\scripts\unused\
move %1\scripts\i1.script %1\scripts\unused\
move %1\scripts\i2.script %1\scripts\unused\
move %1\scripts\i3.script %1\scripts\unused\
move %1\scripts\info_pda.script %1\scripts\unused\
move %1\scripts\info_pda2.script %1\scripts\unused\
move %1\scripts\info_test.script %1\scripts\unused\
move %1\scripts\info_test1.script %1\scripts\unused\
move %1\scripts\isp.script %1\scripts\unused\
move %1\scripts\jm_test.script %1\scripts\unused\
move %1\scripts\kill.script %1\scripts\unused\
move %1\scripts\krondor_test1.script %1\scripts\unused\
move %1\scripts\krondor_test2.script %1\scripts\unused\
move %1\scripts\krondor_test3.script %1\scripts\unused\
move %1\scripts\lua_help.script %1\scripts\unused\
move %1\scripts\memusage.script %1\scripts\unused\
move %1\scripts\mil_test.script %1\scripts\unused\
move %1\scripts\military_radio.script %1\scripts\unused\
move %1\scripts\mob_alife_control.script %1\scripts\unused\
move %1\scripts\monster_script.script %1\scripts\unused\
move %1\scripts\monster_test.script %1\scripts\unused\
move %1\scripts\p.script %1\scripts\unused\
move %1\scripts\path.script %1\scripts\unused\
move %1\scripts\path_old.script %1\scripts\unused\
move %1\scripts\petruxa1.script %1\scripts\unused\
move %1\scripts\petruxa2.script %1\scripts\unused\
move %1\scripts\petruxa3.script %1\scripts\unused\
move %1\scripts\petruxa4.script %1\scripts\unused\
move %1\scripts\ph_test.script %1\scripts\unused\
rem ph_camera scheme is set for scheme load in vanilla but not used
move %1\scripts\ph_camera.script %1\scripts\unused\
move %1\scripts\pl1.script %1\scripts\unused\
move %1\scripts\postprocess.script %1\scripts\unused\
move %1\scripts\pripyat.script %1\scripts\unused\
move %1\scripts\profiler.script %1\scripts\unused\
move %1\scripts\ptr.script %1\scripts\unused\
move %1\scripts\qa.script %1\scripts\unused\
move %1\scripts\quest_aes.script %1\scripts\unused\
move %1\scripts\quest_agroprom.script %1\scripts\unused\
move %1\scripts\quest_bar.script %1\scripts\unused\
move %1\scripts\quest_bar2.script %1\scripts\unused\
move %1\scripts\quest_darkvalley.script %1\scripts\unused\
move %1\scripts\quest_deadcity.script %1\scripts\unused\
move %1\scripts\quest_escape2.script %1\scripts\unused\
move %1\scripts\quest_escape3.script %1\scripts\unused\
move %1\scripts\quest_garbage.script %1\scripts\unused\
move %1\scripts\quest_garbage2.script %1\scripts\unused\
move %1\scripts\quest_items.script %1\scripts\unused\
move %1\scripts\quest_military.script %1\scripts\unused\
move %1\scripts\quest_pripyat.script %1\scripts\unused\
move %1\scripts\quest_radar.script %1\scripts\unused\
move %1\scripts\quest_rostok.script %1\scripts\unused\
move %1\scripts\quest_yantar.script %1\scripts\unused\
move %1\scripts\radar_test.script %1\scripts\unused\
move %1\scripts\rat_swarm.script %1\scripts\unused\
move %1\scripts\script_object_registry.script %1\scripts\unused\
move %1\scripts\se_new_attachable_item.script %1\scripts\unused\
rem slowdown.script not used in vanilla - commented out in bind_stalker.script
move %1\scripts\slowdown.script %1\scripts\unused\
move %1\scripts\ssss.script %1\scripts\unused\
move %1\scripts\stalker_test.script %1\scripts\unused\
move %1\scripts\task_1.script %1\scripts\unused\
move %1\scripts\task_10.script %1\scripts\unused\
move %1\scripts\task_11.script %1\scripts\unused\
move %1\scripts\task_12.script %1\scripts\unused\
move %1\scripts\task_13.script %1\scripts\unused\
move %1\scripts\task_14.script %1\scripts\unused\
move %1\scripts\task_15.script %1\scripts\unused\
move %1\scripts\task_16.script %1\scripts\unused\
move %1\scripts\task_17.script %1\scripts\unused\
move %1\scripts\task_18.script %1\scripts\unused\
move %1\scripts\task_19.script %1\scripts\unused\
move %1\scripts\task_2.script %1\scripts\unused\
move %1\scripts\task_20.script %1\scripts\unused\
move %1\scripts\task_3.script %1\scripts\unused\
move %1\scripts\task_4.script %1\scripts\unused\
move %1\scripts\task_5.script %1\scripts\unused\
move %1\scripts\task_6.script %1\scripts\unused\
move %1\scripts\task_7.script %1\scripts\unused\
move %1\scripts\task_8.script %1\scripts\unused\
move %1\scripts\task_9.script %1\scripts\unused\
move %1\scripts\task_level1.script %1\scripts\unused\
move %1\scripts\task_level2.script %1\scripts\unused\
move %1\scripts\task_level3.script %1\scripts\unused\
move %1\scripts\task_level4.script %1\scripts\unused\
move %1\scripts\task_level5.script %1\scripts\unused\
move %1\scripts\task_level6.script %1\scripts\unused\
move %1\scripts\task_level7.script %1\scripts\unused\
move %1\scripts\task_level8.script %1\scripts\unused\
move %1\scripts\task_level_x18.script %1\scripts\unused\
move %1\scripts\task_sim.script %1\scripts\unused\
move %1\scripts\test.script %1\scripts\unused\
move %1\scripts\test_auto_load_thread.script %1\scripts\unused\
move %1\scripts\test_bug.script %1\scripts\unused\
move %1\scripts\test_cast.script %1\scripts\unused\
move %1\scripts\test_client_spawner.script %1\scripts\unused\
move %1\scripts\test_companion.script %1\scripts\unused\
move %1\scripts\test_debugger.script %1\scripts\unused\
move %1\scripts\test_fly.script %1\scripts\unused\
move %1\scripts\test_fly_3s.script %1\scripts\unused\
move %1\scripts\test_fly_auto.script %1\scripts\unused\
move %1\scripts\test_fly_start.script %1\scripts\unused\
move %1\scripts\test_fly_stop.script %1\scripts\unused\
move %1\scripts\test_heli.script %1\scripts\unused\
move %1\scripts\test_heli_2.script %1\scripts\unused\
move %1\scripts\test_heli_attack.script %1\scripts\unused\
move %1\scripts\test_id.script %1\scripts\unused\
move %1\scripts\test_ini.script %1\scripts\unused\
move %1\scripts\test_invisible.script %1\scripts\unused\
move %1\scripts\test_move.script %1\scripts\unused\
move %1\scripts\test_script.script %1\scripts\unused\
move %1\scripts\test_sound.script %1\scripts\unused\
move %1\scripts\test_trader.script %1\scripts\unused\
move %1\scripts\test_utils.script %1\scripts\unused\
move %1\scripts\test_walk.script %1\scripts\unused\
move %1\scripts\test_zombie.script %1\scripts\unused\
move %1\scripts\thread_test.script %1\scripts\unused\
if EXIST %1\scripts\ui_mm_mp_join.script~ move %1\scripts\ui_mm_mp_join.script~ %1\scripts\unused\
move %1\scripts\ui_multiplayer_create_base_tab.script %1\scripts\unused\
move %1\scripts\val_test.script %1\scripts\unused\
move %1\scripts\version.script %1\scripts\unused\
move %1\scripts\vovan_script.script %1\scripts\unused\
move %1\scripts\walk.script %1\scripts\unused\
move %1\scripts\weap.script %1\scripts\unused\
move %1\scripts\x1.script %1\scripts\unused\
move %1\scripts\x11.script %1\scripts\unused\
move %1\scripts\x18.script %1\scripts\unused\
move %1\scripts\x2.script %1\scripts\unused\
move %1\scripts\x3.script %1\scripts\unused\
move %1\scripts\x4.script %1\scripts\unused\
move %1\scripts\x5.script %1\scripts\unused\
move %1\scripts\x6.script %1\scripts\unused\
move %1\scripts\x7.script %1\scripts\unused\
move %1\scripts\xr_assistance.script %1\scripts\unused\
move %1\scripts\xr_bodyguard.script %1\scripts\unused\
move %1\scripts\xr_comm_ptr.script %1\scripts\unused\
rem if a companion mod doesn't have its own (unlikely), this one should be re-added
move %1\scripts\xr_companion.script %1\scripts\unused\
move %1\scripts\xr_guide.script %1\scripts\unused\
move %1\scripts\xr_heli.script %1\scripts\unused\
rem if a mod needs punch support, this one should be re-added
move %1\scripts\xr_punch.script %1\scripts\unused\
move %1\scripts\xr_radar.script %1\scripts\unused\
move %1\scripts\xr_reactions.script %1\scripts\unused\
move %1\scripts\xr_robbers.script %1\scripts\unused\
move %1\scripts\xr_sos.script %1\scripts\unused\
move %1\scripts\xr_sounds.script %1\scripts\unused\
move %1\scripts\xr_sounds_id.script %1\scripts\unused\
move %1\scripts\xr_talker.script %1\scripts\unused\
rem xr_test scheme is set for scheme load in vanilla but not used
move %1\scripts\xr_test.script %1\scripts\unused\
move %1\scripts\xr_zoneguard.script %1\scripts\unused\
move %1\scripts\xr_zones_sound.script %1\scripts\unused\
move %1\scripts\yantar_test.script %1\scripts\unused\
move %1\scripts\zone_no_weapon.script %1\scripts\unused\
move %1\scripts\zone_spawner.script %1\scripts\unused\

echo Done.

:BatchMoveEnd
