Certain nonasymptotically flat but supersymmetric classical solutions of type IIA supergravity can be interpreted as the infinitely boosted version of the D particle solution along the M-theory circle. By a chain of T-dual transformations, this analysis also applies to yield nonasymptotically flat solutions from the asymptotically flat and (non)extremal solutions with intersecting D strings and D five-branes of type IIB supergravity compactified on a five-torus. Under S duality, the nonasymptotically flat solutions in this context can in particular be used to describe the (1 + 1)-dimensional Callan-Giddings-Harvey-Strominger type black holes via spontaneous compactifications.