Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Showing the command prompt whilst executing a batch script

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
Guest






PostPosted: Mon Oct 29, 2007 11:52 pm    Post subject: Showing the command prompt whilst executing a batch script Reply with quote

Hi

I have recently set up a local batch script which runs after execution. It is for a data backup; it will zip up the contents of the target folders using a command line zip program then will execute a command to burn the zip file to DVD. I am using Nero 7's nerocmd command to burn the DVD, and occasionally this might ask for user input, such as the disc does not have enough space, enter new disc etc. The problem is that I can't get VV 2 to open the batch file in a command prompt window, it runs the batch in the background, and thus I can't see and respond to any user input messages. In this example, the whole batch could just come to a grinding halt without me having any idea why - I would have to terminate the appropriate processes and guess what happened. Is it possible in VV to show the command prompt and allow user input as part of the batch processing?
Back to top
dcohn



Joined: 29 Oct 2007
Posts: 2

PostPosted: Tue Oct 30, 2007 9:00 am    Post subject: Reply with quote

Is VV running as a service

Have you tried adding Cmd /k in front of the batch file as in
cmd /k batch.cmd

Let me know what happens. If no ne from TG responds I will test it shortly anyway.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Tue Oct 30, 2007 11:10 am    Post subject: Reply with quote

Hello

VV runs all scripts silently without user input.... in the next release we are thinking to add an option to allow user input for batch scripts.

thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Guest






PostPosted: Wed Oct 31, 2007 12:59 pm    Post subject: Reply with quote

Thanks folks, that's helpful.

I can now get a command window - not quite as suggested, but it works if I use the start command, for example:

start "batch title" cmd /k batchname.bat

Also can add /w to wait for burning to finish and close window, then first batch can continue.

It would be good to have the option for user input in batches in the next version of VV!
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Thu Nov 01, 2007 3:40 am    Post subject: Reply with quote

Did not know that it was possible to accept user input with
start "batch title" cmd /k batchname.bat

Smile
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: