@set "TestDrive=F"
@REM set "SharePath=\\APCFLEX.AERO\MUC2\AIRLINE-APPS.MUC\UA\UA-SUITE\2022.03.16\INFOCONNECT\9.1B"
@set "SharePath=\\artemis\virtual_drives\common\InfoConnect\9.1b"
@set "PoolDir=%TestDrive%:\cfg\pool"
@set "AvailDir=%PoolDir%\avail"
@set "InUseDir=%PoolDir%\inuse"
@REM set "TestFileName=MUCPOOL1.ini"
@set "TestFileName=Pool001.ini"

@rem Map temporary drive since network paths don't work in scripts
net use %TestDrive%: "%SharePath%"

@rem Allocate address
move "%AvailDir%\%TestFileName%" "%InUseDir%\"
pause
@rem Unallocate address
move "%InUseDir%\%TestFileName%" "%AvailDir%\"

@rem Remove temporary drive
net use %TestDrive%: /delete 