Help Batch Program
|
Original Message
|
Name: Anil Kuchi
Date: January 31, 2006 at 09:17:08 Pacific
Subject: Help Batch ProgramOS: MS DOSCPU/Ram: 4 CPU 2.26 GHZ |
Comment: I would like help in code for a batch program were it searches for any file in a folder (example xyz.xls), get the name xyz and searches for similar name file in same m/c (for ex: xyz.doc), get the Directory (ex: c:\cfx) and changes the timestamp of that file xyz.doc
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: IVO
Date: January 31, 2006 at 13:06:10 Pacific
|
Reply: (edit)First of all you have to explain better your problem, stating what environment you are running, i.e. plain DOS or a DOS window under a Windows operating system, and in this case which version (9X/ME or XP...) as they share the same look, but their kernels are different. More, be aware that changing file's timestamp can't be accomplished without a third party tool like Touch.com.
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Mechanix2Go
Date: January 31, 2006 at 17:31:41 Pacific
|
Reply: (edit)Hi, What version of DOS? You will have a tough time, at best, finding "similar" names. That requires fuzzy logic. You can stamp a file to the current time with: copy filename,,+ /b But to do much else, as IVO says, tales TOUCH etc.
If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: