E. Jean Carroll visits 'Tell Me Everything' with John Fugelsang the SiriusXM Studios on July 11, 2019 in New York.

President Donald Trump has lost an effort to get a New York judge to dismiss a lawsuit against him by E. Jean Carroll, the writer who alleges that he raped her in the changing room of a Manhattan luxury department store decades earlier.

Carroll sued Trump in November, claiming he defamed her by saying she lied about the rape and that she was motivated by money and a political agenda to make up the allegation.

Trump earlier this month asked Manhattan Supreme Court Judge Doris Ling-Cohan to toss out Carroll's lawsuit, arguing that because he made those statements about her while in Washington, D.C., and not in New York state, he could not be sued for them in a New York court.

Ling-Cohan, in a ruling released Thursday, rejected that argument, saying Trump's lawyer Laurence Rosen failed to offer evidence that the president was not subject to the jurisdiction of the New York court.

"Although defendant Trump, through his counsel, claims lack of personal jurisdiction, notably, there is not even a tweet, much less an affidavit, by defendant Trump in support of his motion," Ling-Cohan wrote.

Instead, the judge noted, Trump's attorney merely argued that Ling-Cohan should "take judicial notice that the President of the United States has resided in the United States for the past three years."

In her ruling, Ling-Cohan also rejected Trump's effort to postpone discovery in the case.

That will allow Carroll to seek evidence from Trump and his testimony in response to her suit.

"WE MOVE AHEAD!" Carroll wrote on Twitter, crowing that Ling-Cohan "DENIES @realDonaldTrump's lame effort to get suit tossed."

Carroll's lawyer Robbie Kaplan said, "We are pleased, yet unsurprised, that the Court refused to tolerate Donald Trump's latest attempt to avoid discovery in our client's case."

"We look forward to moving ahead and proving that Donald Trump lied when he told the world that he did not rape our client and had not even met her," Kaplan said.