Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
I am new to the batch scripting. Can anyone plz tell me what would be the script of following taskCopy Floppy Disc (main heading)1. Put in floppy disc [ready for copy]2. Press Enter key to start copy all data from floppy disc into the choice folder in the hard disc [C:\temp_floppy]3. Upon finish, display message i. Please insert new floppy disc [Y /N] ii. Do you want to cancel this operation [Y /N]
1. Put in floppy disc into drive [ready for copy]( There is no software command for this task )
@echo off:loopclsecho Insert a floppy disk and thenset /p dummy=press ENTER to start copyingcopy a:\*.* c:\temp_floppyset /p again="Do you want to copy another disk [Y/N] ? "if /i "%again%"=="Y" goto loop
:loopset dirname=set /p dirname="Enter directory name ? "if /i "%dirname%"=="" ( echo Error: empty input. echo. goto loop )echo. echo You entered %dirname%.:checkset /p correct="Is this correct [Y/N] ? "if /i "%correct%"=="Y" goto nextif /i "%correct%"=="N" ( echo. goto loop )echo Error: type Y or N only!echo.goto check:next
but still the required task is not doneIn first task, the entered folder name is not being created actuallyandin second task how to generate a list of text files and directories with that command..
Actually i m working on project, two more things are yet to do.