Computing.Net > Forums > Programming > batch to read a typed filename and

batch to read a typed filename and

Reply to Message Icon

Original Message
Name: Mr krayzie
Date: January 18, 2004 at 16:43:56 Pacific
Subject: batch to read a typed filename and
OS: dos 6.22
CPU/Ram: 486 16meg
Comment:

Hi what I need is a batch file (if poss) that will let me type in a filename (eg 1234*.*) and copy it to another directory.
Then to unshrink that file.
then to copy the unzipped files to another directory that is called by the file name (1234)

eg copy (1234*.*) to c:\shrunk
unshrink 1234
copy c:\cadentry\1234\*.* to t:\tfr\1234



Report Offensive Message For Removal

Response Number 1
Name: Code One
Date: January 18, 2004 at 20:52:28 Pacific
Subject: batch to read a typed filename and
Reply: (edit)

i dont think this is possible...


Report Offensive Follow Up For Removal

Response Number 2
Name: wt (by think)
Date: January 18, 2004 at 21:33:02 Pacific
Subject: batch to read a typed filename and
Reply: (edit)

well, i don't remember (don't know) much about batch files, however, in unix shell this is okey. you can do the same thing in c.


Report Offensive Follow Up For Removal

Response Number 3
Name: kaepeekay
Date: January 19, 2004 at 04:40:54 Pacific
Subject: batch to read a typed filename and
Reply: (edit)

@echo off
copy %1 %2
unshrink %2
copy %2 %3

call the batchfile with the following paramters. For eg.the batch file is saved as copybatch.bat

copybatch.bat c:\1234\*.* c:\unshrink\*.* c:\dest

it will copy all files from c:\1234 to c:\unshrink and do your command afterwards
and copy files from c:\unshrink to c:\dest.
You can pass parameters to batch file and they can be accessed by specifying %n where n=1(first paramtater) n=0-batch filename


Report Offensive Follow Up For Removal

Response Number 4
Name: Mr krayzie
Date: January 20, 2004 at 03:39:02 Pacific
Subject: batch to read a typed filename and
Reply: (edit)

Thanks, I new that one already.
The problem is I need it for people to use and these people can barely turn the computer on!!!


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: batch to read a typed filename and 

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software