Add Papers Marked0
Paper checked off!

Marked works

Viewed0

Viewed works

Shopping Cart0
Paper added to shopping cart!

Shopping Cart

Register Now

internet library
Atlants.lv library
FAQ
1,99 € Add to cart
Add to Wish List
Want cheaper?
ID number:736907
 
Author:
Evaluation:
Published: 31.01.2006.
Language: Latvian
Level: College/University
Literature: n/a
References: Not used
Time period viewed: 2000 - 2010 years
Extract

Komandu fails ar komandām if, goto, choice, arhivātoriem. Parametri: lietotāja numurs (1,2,3), arhivējama teksta faila vārds, arhīva vārds.
Lai komandu fails darbotos, nepieciešams ievietot atbilstošas arhivātoru izpildāmas datnes RAR.exe un ZIP.exe darba katalogā.
Datnē tika izmantota komanda pause, lai ļaut lietotājam apskatīt komandu faila darbības starp rezultātus.
rem laboratoirijas darbs 4_1
rem %1 - kataloga vards
rem %2 - teksta faila vards
rem %3 - arhiva vards
@echo off
cls
if .%3 == . goto NOPARAMS

md c:kat%1
dir c:kat%1
echo Hello world>c:kat%1%2.txt
type c:kat%1%2.txt
pause
cls
echo Pieejamo arhivatoru saraksts
echo 1: Rar
echo 2: Zip
echo
choice /c:12 /t:1 10 Izveleties arhivatoru no saraksta (1,2)
if errorlevel 2 goto ZIP
if errorlevel 1 goto RAR…

Author's comment
Load more similar papers

Atlants

Choose Authorization Method

Email & Password

Email & Password

Wrong e-mail adress or password!
Log In

Forgot your password?

Draugiem.pase
Facebook

Not registered yet?

Register and redeem free papers!

To receive free papers from Atlants.com it is necessary to register. It's quick and will only take a few seconds.

If you have already registered, simply to access the free content.

Cancel Register