We discuss the Aharonov-Bohm effect of a magnetic flux for its influence on a two-dimensional quantum cloak. It is shown that the matter wave of a charged particle under the global influence of the Aharonov-Bohm effect can still be perfectly cloaked and guided by the quantum cloak. Since the presence of the global influence of a magnetic flux on charged particles is universal, the perfect cloaking and guiding nature not only provides an ideal setup to cloak an object from matter waves but also provides an ideal setup to test the global physics of charged matter waves in the presence of a bare magnetic flux.