?
Solved

Command Prompt inquiry

Posted on 2012-12-30
7
Medium Priority
?
627 Views
Last Modified: 2013-01-02
Hello Experts,
Just wanted to get myself educated on the items that i was asked to run and create a schedule task in our server.
Would you be able to shed some light or links on what this command parameters actually do and the best approach when creating  schedule task using the command mentioned.
Anyway here is the command...

C:\AppScript\run - c all

...on C:\AppScript\ folder there are our files...
C:\AppScript\run.bat
C:\AppScript\run.conf
C:\AppScript\run.jar
C:\AppScript\run.sh

Can you please help me understand....
1.0 Does the dos command runs all the files under the folder?
2.0 If Yes(on 1.0) , does it have a sequence ( i meant run one at a time)? If Yes what is it?
3.0 If no sequesnce, does it just run everything the same time without any dependencies.?
4.0 Lastly , if i am to create a scheduled task do i have to run each file (e.g. run.bat, run.jar, run.conf and run.sh) spearately (or create one start a program entry on each)?

Thanks,
0
Comment
Question by:jsuanque
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 56

Expert Comment

by:Bill Prew
ID: 38731756
We will need to see the contents of the BAT file, that is what should be executed, so to tell what will happen depends on what it contains.

~bp
0
 
LVL 82

Accepted Solution

by:
David Johnson, CD, MVP earned 300 total points
ID: 38731892
C:\AppScript\run - c all

this will only start 'run.bat', which may depending upon what it's contents do other items..
%1 will be -
%2 will be c
%3 will be all
and in the batch file it will check these variables and act upon them as required.
0
 
LVL 10

Assisted Solution

by:Korbus
Korbus earned 100 total points
ID: 38731999
ve3ofa probabaly has the answer you are looking for.
But you should also be aware of the fact that if there were a run.exe file in the folder, that .exe file would get executed by the command
   C:\AppScript\run - c all

But even if there were such a file, you can always specify exactly which file to run like this:
  C:\AppScript\run.bat - c all
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
LVL 14

Assisted Solution

by:Don Thomson
Don Thomson earned 200 total points
ID: 38732958
The actual Run.bat  is the only file that will actually load on it's own


The run.conf  file is typically just an instruction set for something like Dosbox.exe

Depending on what is in the run.conf  it would load as a line item in the run.bat
Example :

dosbox.exe run.conf

For the run.jar  you need to put in the program and Parameters that you want to pass to the java script

For Instance:

java -jar run.jar

The run.sh  is a script file but you need to have something like Cygwin installed in order for Dos to know what to do with it. The run.sh will not run natively in DOS

Overall - your question doesn't really make a lot of sense. You're asking us to fix your car without opening the Hood - The three different extensions that you are using are basically control or information files for other programs - and need to be run by those programs - Without knowing what is in the scripts - not much we can tell you
0
 
LVL 82

Expert Comment

by:David Johnson, CD, MVP
ID: 38733025
just to expand upon the order of execution DOSKEY Macro  .COM  .EXE  .BAT in versions of dos >4
0
 
LVL 82

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 300 total points
ID: 38733035
part 4: you would need a task scheduler entry for each entry, OR create a new batch file that has the following
---- runall.bat ----
start C:\AppScript\run.bat
start C:\AppScript\run.conf
start C:\AppScript\run.jar
start C:\AppScript\run.sh
---- end of runall.bat ----
0
 

Author Comment

by:jsuanque
ID: 38735274
Hello Guys thanks for the response.

Hello Korbus, there are no other files (i.e. run.exe) on the directory other than the ones mentioned on the list.  

Hello DTHConsulting, Thanks for the explanation.

Hello Ve30fa, Thanks and as for the scheduled task i created one action...
C:\AppScript\run

And then added argument...
-c all.

I reckon this should be sufficient as for schduling that task  But i guess i'll know tomorrow if its succesfull.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question