Jump to content

Make a batch file select options?


tal ormanda

Recommended Posts

@echo off

start "FileZilla server Start & Stop" "C:\Program Files\FileZilla Server\FileZilla server.exe"

I made that, it opens FileZillas service, after it opens it, it asks for open the service Yes/No.

My question: Is there a command I can add into the batchfile to make it auto say yes so I dont have to click it, and one to make it auto say No for another batch file?

Link to comment
Share on other sites


As the program you're using is FileZilla and anything regarding its use and configuration is more than likely already available at the FileZilla Forums / Knowledgebase / FAQ, your choosing not to is your own loss and unwillingness to seek the answers to your questions.

Link to comment
Share on other sites

Here a VBS script that uses the Yes No Cancel Messagebox just fill in your path to the app

Save as FileZilla.vbs

'4132 = yes no buttons, 4131 = yes no cancel
Dim Act, ZZ1
Set Act = CreateObject("Wscript.Shell")
ZZ1= MsgBox("Did you want to start or stop FileZilla" & vbCrLf &_
space(5) & "Yes to start FileZilla" & vbCrLf & space(5) & "No to stop FileZilla" &_
vbCrLf & space(5) & "Cancel to just do nothing",4131 ,"FileZilla")
If ZZ1 = 6 Then Act.Run("C:\pathTo\FileZilla\FileZilla server.exe /compat /start") End If
If ZZ1 = 7 Then Act.Run("C:\pathTo\FileZilla\FileZilla server.exe /compat /stop") End If

Link to comment
Share on other sites

I did this:

@echo off

start "FileZilla server Start & Stop" "C:\Program Files\FileZilla Server\FileZilla server.exe" /compat /start

nothing happened.

Or if you want to keep & just rewrite to :

@echo off
start "FileZilla server Start ^& Stop" "C:\Program Files\FileZilla Server\FileZilla server.exe" /compat /start

Note the ^ ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...