Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8966777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:05:43+00:00 2026-06-15T17:05:43+00:00

I have a server application running called TerrariaServer.exe and I want to be able

  • 0

I have a server application running called TerrariaServer.exe and I want to be able to send it commands with separate batch file. TerrariaServer.exe is a program running as a command line. How could I “feed” it a command such as “save” and “exit”? The answer might be pipes, but I’m not too sure. Here is kinda what I executed in a batch file while TerrariaServer.exe was running…

@echo off
echo save | TerrariaServer.exe
echo exit | TerrariaServer.exe

After that, nothing happen. I don’t know if you need to know this but this is a video game server and the “save/exit” commands come with it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:05:44+00:00Added an answer on June 15, 2026 at 5:05 pm

    Eep, use type for multiline input!

    echo save | TerrariaServer.exe
    

    will open up TerrariaServer.exe and send “save” as input to it.

    echo exit | TerrariaServer.exe
    

    will open up TerrariaServer.exe and send “exit” as input to it.

    See the problem yet? 😛

    You’re executing TerrariaServer.exe twice!

    You should use the command type. You can type a text document into the input of an executable. First, let’s create this text document (or any file for that matter; the extension doesn’t matter!)

    echo save>somefile.txt
    echo exit>somefile.txt
    

    Now let’s type this into TerrariaServer.exe…

    type somefile.txt | TerrariaServer.exe
    

    Maybe delete somefile.txt after we’re done?

    del somefile.txt
    

    Hope that cleared things up! 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application running on Websphere Application Server 6.0 and it crashes nearly
I have a J2EE application running on an IBM Websphere Application Server on a
I have a web application running in a jboss application server (But it is
I have a REST server and a client application running on a mobile device.
I have rails application running in linode server .Some guy is continuously spamming (writing
I have an application running on a Windows Server 2008, that is processing uploaded
I have a C# application running on a server, and it needs to copy
We have a job management application running (Access) with the database in SQL Server
I have an ASP.NET 2.0 web application running on a shared server of a
We have a Java EE-based web application running on a Glassfish app server cluster.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.