Programming

Programming questions? Ask a programmer for answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

I have a batch file that is scripted to execute another batch…

Customer Question
I have a batch file...
I have a batch file that is scripted to execute another batch file within it. It wont process the other batch file.
Submitted: 8 years ago.Category: Programming
Show More
Show Less
Ask Your Own Programming Question
Answered in 4 minutes by:
6/17/2010
Programmer: jnayes, Computer Support Specialist replied 8 years ago
jnayes
jnayes, Computer Support Specialist
Category: Programming
Satisfied Customers: 2,592
Experience: HTML, PHP, Delphi, ASP.net
Verified
Do NOT accept my answer unless this works, please test it first and then let me know if this is what you were looking for.

Use the call command within the first batch file to reference the other one.

Here's the definition and parameters of the call command for your reference:

Loads and executes a batch file from within a batch file as if it were a external command. When a second batch file completes, control is returned to the calling file.
call [drive:][path]filename [batch-parameters]
Before DOS version 3.3:
command /c [drive:][path]filename [batch-parameters]

Ask Your Own Programming Question
Customer reply replied 8 years ago

Justin,

 

I have not worked with batch files much so I would greatly appreciate it if you would insert the call into the following batch file so I can see where it needs to be placed.

 

Thanks,

Jennifer

 

 

WSK_LOAD.BAT

 

@echo off
rem--------------------------------------------------------------------

rem !!! DO NOT REMOVE OR MODIFY THIS FILE !!!
rem !!! THIS FILE IS USED BY THE eCBT SYSTEM !!!
rem--------------------------------------------------------------------


SET ECBT_DEFAULT_SERVER_NAME=WR-TESTING1
SET ECBT_BATCH_HOME=C:\ETSBATCH
SET ECBT_HOME=\\WR-TESTING1\tdms
set ecbt_logfile=%ECBT_BATCH_HOME%\wsk.log
SET ECBT_CLIENT_VERSION=4.0

 

rem----------------------------------------------------------------------
if exist %ECBT_HOME%\client\bin\wks.bat goto avail
echo Cannot access %ECBT_HOME%!
echo Attempting to open the share ...
echo If you see the share window, please close it to proceed ...
rem------------------------------------------------------------------------


:avail
%ECBT_HOME%\client\bin\wks.bat

Programmer: jnayes, Computer Support Specialist replied 8 years ago
Its been awhile, but should be last line.


:avail
CALL %ECBT_HOME%\client\bin\wks.bat

Just add call. Let me know if it works. If it doesn't please tell me the error.
Ask Your Own Programming Question
Customer reply replied 8 years ago

Justin,

 

The CALL did not resolve the issue. The window opens like it should but does not provided the needed login window for students to log into the server.

 

I am currently trying to figure out how to get a batch file to run correctly in Windows 7. I have looked on the Internet and have not had much success in finding any useful information on the issue I am encountering.

 

BATCH FILE SHOULD- The batch file is to open a window to allow students to test on a TDSM server created by ETS eCBT - The test is a CLEP Exam. The batch file is to open the workstation for students to use and it looks like it loads but the Welcome/Login Screen never appears as it should.

 

I have tried everything I can think of: Run as Administrator, Moved files to run from the HD, made sure all files and folders associated with the program were shared with users and computers, had Windows 7 run compatibility which says it does not contain an .exe file to run, and re-wrote the batch file using the call function you suggested.

I know it is connecting to the TDMS server as I can see it on the server. The only thing it does not do is bring up the window which is necessary to login to the testing server. The window opens like it should but does not produce the login boxes.

 

Hope this helps you out,

Jennifer

Programmer: jnayes, Computer Support Specialist replied 8 years ago
Na, I know your basic batch files for domain logins and such. I think there's a programming section on this site that I can move your question to. I'll opt out and try to get your post moved over there.
Ask Your Own Programming Question
Customer reply replied 8 years ago

Justin,

 

Thank you I appreciate all the help you have given me.

 

Jennifer

Customer reply replied 8 years ago
Has anyone else had time to look at my issue?
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a programmerLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask jnayes Your Own Question
jnayes
jnayes
jnayes, Computer Support Specialist
Category: Programming
Satisfied Customers: 2,592
2,592 Satisfied Customers
Experience: HTML, PHP, Delphi, ASP.net

jnayes is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,175 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

848 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
WS_ftp Pro need to move from an older server with batch
WS_ftp Pro need to move from an older server with batch files an schedules … read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
My Windows 10 computer has 2 accounts on it. One is an admin
My Windows 10 computer has 2 accounts on it. One is an admin account. The other is a guest account. Upon login to the guest account, a batch script needs to be executed that resides in the admin accou… read more
MrComputer2010
MrComputer2010
Bachelor's Degree
249 satisfied customers
I need a Perl script (or similar) to process incoming TAP
I need a Perl script (or similar) to process incoming TAP 3.11 files to TAP 3.10 format, e.g. using the TAP3edit Perl module: http://www.tap3edit.com/… read more
Mr. Wilson
Mr. Wilson
Teacher
Master\u0027s Degree
200 satisfied customers
hi im currently creating a bat scrypt to install and run various
hi im currently creating a bat scrypt to install and run various networking commands and i want a text file changed based on the users input, for example to change "enter password XXXXX" to the users … read more
Brandon M.
Brandon M.
System Administrator
Vocational, Technical or Trade Scho
2,143 satisfied customers
hi. im simply looking to aggregate html pages from a website
hi. i'm simply looking to aggregate html pages from a website that has decide to abandon the old fashion manual. i own acrobat 9 standard and that does a great job web crawling extensively- usually to… read more
J Paul Richardson
J Paul Richardson
Associate Degree
162 satisfied customers
HelloNeed scripts to get data from sql server database 2008;Subje
Hello Need scripts to get data from sql server database 2008; Subject: Batch File Need to run a batch file as below: file1......Sql Code > Select ID, Firstname, LastName, CompanyName, EMail from Co… read more
SDSU_GURU
SDSU_GURU
58 satisfied customers
So Im having trouble with this one perl script. here is the
So I'm having trouble with this one perl script. here is the line: my $pid = StartApp("E:\\Luxmark-win64-v2.0\\LuxMark-x64.exe"); If I manually just double click the exe... it runs fine. However calli… read more
Brandon M.
Brandon M.
System Administrator
Vocational, Technical or Trade Scho
2,143 satisfied customers
In the same folder as last week, create a new file titled week3prog1[name].scr. Change
In the same folder as last week, create a new file titled week3prog1[name].scr. Change the permissions on this new file to add the execute bit for user, group, and owner. Edit your new file using Gedi… read more
Todd
Todd
Bachelor\u0027s Degree
396 satisfied customers
I need software or some method. I want to create folders with
I need software or some method. I want to create folders with a specified name and move all files to that folder that have a similar name in the beginning. for example: I may want to create a folder t… read more
Todd
Todd
Bachelor\u0027s Degree
396 satisfied customers
HTML / Javascript - cant get an HTML page to run a scr
HTML / Javascript - can't get an HTML page to run a script. I need to run 2 scripts. One changes a registry key (before the page loads) and one on exit after leaving HTML page (puts key back). The are… read more
Russell H.
Russell H.
Computer Technology Consultant
Vocational, Technical or Trade Scho
792 satisfied customers
Can you add Google Analytic code to a batch file so it will
Can you add Google Analytic code to a batch file so it will send information if a section in the batch file is called?… read more
Eljon
Eljon
Software Developer Consultant
Associate Degree
562 satisfied customers
Dos batch file script using notepad to open some directories
URGENT REQUEST for ASAP ... Dos batch file script using notepad to open some directories located c:\ drive and erase or delete file extensions (*.txt, *.log........and one has no file extension but da… read more
Eljon
Eljon
Software Developer Consultant
Associate Degree
562 satisfied customers
Im ruinning the following command to execute a batch file
I'm ruinning the following command to execute a batch file in a script, I'd like the command shell to run minimised or silently so the dos prompt does not pop up. Is this possible? Dim MyShell Dim she… read more
NeOh
NeOh
Software Engineer
Bachelor's Degree
682 satisfied customers
I need some help creating a batch file to automate the
Hello, I need some help creating a batch file to automate the process of removeing double quotes in 2 text file, it gets exported from crystal reports, can be renamed any name. the double quotes are i… read more
John The Geek
John The Geek
Senior Software Developer
Bachelor\u0027s Degree
65 satisfied customers
using ssh to invoke remote shell script on a unix box from
using ssh to invoke remote shell script on a unix box from my workstation. The script fails because when the ssh call is made, the user environment is not set. The .profile file for the user doesnt se… read more
Sabertooth
Sabertooth
Freelancer
Bachelor\u0027s Degree
67 satisfied customers
I wonder how Iam can quit ms access from another application,
I wonder how I'am can quit ms access from another application, or must I'am be in ms access to do it?… read more
Cherryl Lewis
Cherryl Lewis
Bachelor's Degree
180 satisfied customers
Hi, I had a question regarding the perl script which I am
Hi, I had a question regarding the perl script which I am working on right now. I am editing multiple files of the same type using file handling. While my query works on some of the files..it doesnt w… read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
1)Your manager wants you to write a batch script that will
1)Your manager wants you to write a batch script that will automatically do a recurring online bill payment every month. Is this possible? What would you tell him/her? How much can be accomplished usi… read more
Russell H.
Russell H.
Computer Technology Consultant
Vocational, Technical or Trade Scho
792 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x