Warner Bros. is getting “Haunted,” buying Eric Kripke’s spec script and setting up the project with Greg Berlanti through Berlanti Prods. and Kevin McCormick via his Langley Park banner.

Kripke, creator and exec producer of the CW’s “Supernatural,” will also direct “Haunted,” a tale of a haunted house told from the ghost’s point of view.

His other credits include the feature “The Boogeyman.”

Before “Supernatural” bowed in 2005, Kripke was known for his short films, which included Sundance entry “Battle of the Sexes,” as well as “Truly Committed,” which won the audience award at Slamdance.

Kripke has also helmed several segs of “Supernatural,” which is heading into its seventh season this fall.

Berlanti is a producer and screenwriter on Warner’s “Green Lantern” and directed the studio’s “Life as We Know It.”

Warners recently picked up Ian Shorr’s “The Count of Monte Cristo” and set it up with McCormick’s Langley Park.

Sarah Schechter is overseeing “Haunted” for the studio.

Kripke’s repped by WME and Principato-Young.