Käynnissä

Batch File Program

1. The given code below in the batch file should print out a list of the names of the text files stored in the current directory. Can you amend the program below to make it print out a list of text files (.txt) and a list of executable files (.exe)?

Echo off

REM command that prints out a list of names of text files

FOR %%a IN (*.txt) DO ECHO %%a

Pause

REM end of program

2. This batch file demonstrates how the IF command works:

Echo off

REM call the batch files [url removed, login to view]

REM check whether a files called ‘[url removed, login to view]’ exists

IF EXIST [url removed, login to view] GOTO :success

IF NOT EXIST [url removed, login to view] GOTO :error

:success

ECHO file [url removed, login to view] exists

GOTO :end

:error

ECHO Error – Cannot find [url removed, login to view] file

:end

Pause

REM do nothing. This is the end of the file

Amend the above program so the user can choose any file they specify, rather than using [url removed, login to view] all the time.

Taidot: DOS, Microsoft, Windows Desktop

Näytä lisää: understanding file format works, convert microsoft word file microsoft works, read line program file txt, quanvert program file, simple program file text line, sample client server program file transfer, program file txt, program convert batch, program file management system, program file

About the Employer:
( 25 reviews ) Long Island City, United States

Projektin tunnus: #8672228

Myönnetty käyttäjälle:

grebenyuk51

I have already written your your program. And it is working perfectly well. I don't know why everybody bits $15-$25, this program very easy. I watned to bid $1, but [url removed, login to view] takes $5 fee, and minimum bid is $5. Lisää

10 $ USD 0 päivässä
(0 arvostelua)
0.0

13 freelanceria on tarjonnut keskimäärin 17 $ tähän työhön

sargardon

Hello sir/madam, However, I am new here in [url removed, login to view] I have over 10 years of experience in Windows programming. Let me do your job right now. Best regards, Tolib Rahimov

20 $ USD 0 päivässä
(6 arvostelua)
3.1
ljnath

Hello, i can do it in few mins. I am free and can start immediately on it. Please contact me. File created. please contact so that i can share it with you. I can provide immediate screenshot of result. I have reduce Lisää

25 $ USD 0 päivässä
(2 arvostelua)
2.6
vw6362291vw

Hello. You can apply the command string options and set the parameters when you run a batch file. You can also run these batch files from other batch file containing a the necessary parameters.

15 $ USD 1 päivässä
(2 arvostelua)
2.7
Rasil

Hello . Use " set /p var=enter file name " Copy script below to file ----------------------- Echo off REM command that prints out a list of names of text files FOR %%a IN (*.txt) DO ECHO %%a Pause REM end of pr Lisää

20 $ USD 3 päivässä
(1 arvostelu)
1.1
burcinsayin

I have more than 10 year development experience. Writing bash or bat scripts is a par of the job too. So if specifications are defined clearly I can write what you need in very short timr

10 $ USD 1 päivässä
(1 arvostelu)
0.4
Gleiser77

Hello friend, I can easily adjust your scripts so you reach your goals. I am a systems analyst, I have worked for the past 5 years in the field. Please contact me so we can start it. Thanks for the attention!

25 $ USD 1 päivässä
(0 arvostelua)
0.0
LDmitriy

A proposal has not yet been provided

25 $ USD 2 päivässä
(2 arvostelua)
0.2
ikhancevich

Hi. I will make it for you in 1 hour.

15 $ USD 1 päivässä
(0 arvostelua)
0.0
shahbaz143

I have the scripts modified with me and can share with you as soon as you want them. You can review them and let me know if any minor changes needed. Looking forward to hear from you. Have a good day!

15 $ USD 0 päivässä
(0 arvostelua)
0.0
roadroll

Hello, For this price i'll change both parts of your batch jobs 1. You'll be able to use any mask for listing instead of *.txt 2. Any file name instead of [url removed, login to view] Estimated time to job - 2 minutes :) Best regards Lisää

10 $ USD 0 päivässä
(0 arvostelua)
0.0
razvansodoleanu

Hi, I would like to complete this project for you. Could you please tell me if you want to show both lists at the same time, with the files aligned one after the other or do you want to choose which file to check Lisää

15 $ USD 1 päivässä
(0 arvostelua)
0.0
renegator

You can try this codes: 1. Echo off REM command that prints out a list of names of exe files IF "%1" EQU "" SET mask=txt IF "%1" NEQ "" SET mask=%1 FOR %%a IN (*.%mask%) DO ECHO %%a Pause REM end of prog Lisää

10 $ USD 0 päivässä
(0 arvostelua)
0.0