Please help me write this simple script

Reply

Join Date: Jan 2008
Posts: 2
Reputation: vnairp11 is an unknown quantity at this point 
Solved Threads: 0
vnairp11 vnairp11 is offline Offline
Newbie Poster

Please help me write this simple script

 
0
  #1
Jan 22nd, 2008
I need a script that will do the following tasks

Write and test a script called ExpWord.cmd that would do the following:

copy all the files in the Exploring Word directory to a new directory on your H drive called ExpWord

Use a wild card character to delete all that files in the ExpWord directory that start with the word Chapter.

Output the directory listing for ExpWord to a file called ExpWord.doc located at the root directory of your H dirve.

If an error was detected in any of the steps above
 display an appropriate error message (For example: “Error detected in the copy command!” )
 pause and then exit the shell.


Write and test a script called ExcelFiles.cmd that would do the following:


Generate a report that will provide a listing of all the Excel files on your H: drive and redirect that report to a file called ExcelFiles.doc located at the root directory on your H drive.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2
Reputation: vnairp11 is an unknown quantity at this point 
Solved Threads: 0
vnairp11 vnairp11 is offline Offline
Newbie Poster

Re: Please help me write this simple script

 
0
  #2
Jan 22nd, 2008
I did this much so far but i donno how to do the echo commands

Shell Scripting Syntax (Toggle Plain Text)
  1. md "I:\ExpWord"
  2.  
  3. start /d "I:\Exploring Word" /b
  4.  
  5. copy "H:\Exploring Word\chapter 1*.doc" "I:\ExpWord\"
  6.  
  7. start /d "I:\Exploring Word" /b
  8.  
  9. dir > "H:\ExpWord.doc"
  10.  
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC