1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
agasfer [191]
4 years ago
15

If you know batch coding, can you see if there is anything wrong with this script, or if you can make any suggestions to modify

the code?
thanks

@echo off
cls
color df
title Website Opener
echo type in "website" to go to open website ( you dont need to include the www. Or you can type "program" instead to open a program)
set /p a=
if %a%== program goto start_pro
if %a%== website goto website
) Else (
exit

:website
cls
echo okay! what website do you want to open?
set /p a=Website:
start www.%a%
exit



:start_pro
cls
title Open A Program
echo what is the program you want to open?
set /p a=
if exist %a% then
if not exist %a% exit
start %a%
Computers and Technology
1 answer:
zzz [600]4 years ago
8 0
There isn't an opening and closing parentheses for the else statement. PM me. I know a lot of batch...
You might be interested in
Calcule o resultado em cada caso atividade de matemática poder me ajudar<br><br>​
Phoenix [80]

Answer:

I do not understand can you type in English?

Explanation:

7 0
3 years ago
A​ _______ variable is a variable that has a single numerical​ value, determined by​ chance, for each outcome of a procedure.
7nadin3 [17]
Single variable is the answer
5 0
3 years ago
Consider this data sequence: "fish bird reptile reptile bird bird bird mammal fish". There is a CONSECUTIVE REPETITION of length
ioda

Answer:

The code is given below. Follow the question and the code definitions for better understanding.

Explanation:

#include<iostream>

#include<string>

using namespace std;

int main(){

string pastWord="";

string currentWord,nextWord;

int n,t;

int singleton=0;

int consecutive=0;

cout<<"Enter words. ('xxxxx' to exit):\n";

cin>>nextWord;

do{

currentWord=nextWord;

cin>>nextWord;

if ( (currentWord!=pastWord)&&(currentWord!=nextWord) )

singleton++;

else if((currentWord==pastWord)&&(currentWord!=nextWord))

consecutive++;

pastWord=currentWord;

}while(nextWord!="xxxxx");

n=singleton;

t=consecutive;

cout<<"There were "<<n<<" singletons and "<<t<<" consecutive repetitions.";

cin.get();

return 0;

}

8 0
3 years ago
What value will the color variable have after these lines of code run?
hoa [83]

Answer:

red

Explanation:

color is set to red in the last line of being defined.

5 0
3 years ago
For Power Point: To move the insertion point on a table to a different cell, which key should be pressed?
hammer [34]
I could be wrong but I'm pretty sure it's A. Tab
6 0
3 years ago
Read 2 more answers
Other questions:
  • A blood bank maintains two tables - DONOR, with information about people who are willing to donate blood and ACCEPTOR, with info
    10·1 answer
  • This is not school related in anyway but. I used to play this videogame on my computer years ago, but i cannot remember the name
    13·2 answers
  • Using C#, declare two variables of type string and assign them a value "The "use" of quotations causes difficulties." (without t
    11·1 answer
  • ​ In addition to analyzing logic and program code, a project team usually holds a session with users, called a _____, to review
    5·1 answer
  • Your client noticed that his ad was disapproved for editorial reasons. Why is it important for him to understand and abide by Go
    9·1 answer
  • Danica now wants to add a picture of her cookies to her flyer.
    10·2 answers
  • Ok so um does anyone know how i can use a divided by sign on computer?
    11·2 answers
  • What is MS-Word? Write some versions of MS-Word.
    8·2 answers
  • Declare a typedef struct named jumper_t that will have four parts: character array name that is 16 in length, double array of tr
    12·1 answer
  • Who is katie and why is she deleting my answers
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!