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)?
REM command that prints out a list of names of text files
FOR %%a IN (*.txt) DO ECHO %%a
REM end of program
2. This batch file demonstrates how the IF command works:
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
ECHO file [url removed, login to view] exists
ECHO Error – Cannot find [url removed, login to view] file
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.
13 freelanceria on tarjonnut keskimäärin 17 $ tähän työhön
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
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.
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
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!
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!