Jump to content
UBot Underground

Batch File help...


Recommended Posts

Wondering if anyone can help me with this...

 

I'm trying to run program from command prompt and have it automatically answer a few input questions, so I'm guessing I need to run a bat file. What I need to do is run a file with a passed param, for example: "theprogram.exe c:\image.jpg". After it runs, in the cmd window, the program asks for an input that I need to automatically answer and press enter, then it asks another question and I need to respond to that one as well. 

 

I'm sure it's pretty easy, but I'm not exactly sure what I'm doing when it comes to batch files...

 

p.s. I already have uBotDev's plugin, I just don't know what commands to run for it to answer the inputs.

 

Thanks guys!

 

 

 

Link to post
Share on other sites

Hi Kevin,

 

I'm not exactly sure I understand...

 

So my bat file would look like this? (as you can guess it didn't work like that)

theprogram.exe c:\image.jpg
set /P namethefile="Please enter a name for the file: "

Here's what happens, when I run a bat file with just: theprogram.exe c:\image.jpg

 

it prompts the user: "Please enter a name for the file: ", and I need to automatically fill that out and then press enter so the next question appears.

Link to post
Share on other sites

Hi,

 

Yeah your are correct. My code sample just set a value via command prompt. Does not interact with a program.

 

Weird the program you are running does not provide a means to pass additional value(s) for the prompt(s).

 

Kevin

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...