Search found 15 matches
- 22 Oct 2014 19:03
- Forum: DOS Batch Forum
- Topic: How to retrieve command history? Thanks
- Replies: 1
- Views: 1969
How to retrieve command history? Thanks
Hello, Yes I know this forum is focus on batch question, and I also know that many many of you guys are very experienced old dos guys. That's why I post my question here: I often use cmd, and sometimes my command is length (e.g. I use bcp to import data and the bcp command is usually lengthy), I won...
- 23 Jul 2014 07:03
- Forum: DOS Batch Forum
- Topic: How to remove lines of plain text format
- Replies: 3
- Views: 2859
Re: How to remove lines of plain text format
Thank you for your quick reply, the bat file looks so complicated to me and I am not sure if our security department will allow it. BTW: the command seems to me is generating a new file, it would be best to simply chop off the first 2 lines on the original file, and, if possible, also chop off the l...
- 23 Jul 2014 06:23
- Forum: DOS Batch Forum
- Topic: How to remove lines of plain text format
- Replies: 3
- Views: 2859
How to remove lines of plain text format
Hello,
I am not sure if this is a doable thing in DOS, maybe using the debug command? I have text files to be chopped off the first two lines and hopefully the last three lines. The biggest challenging is the text's size, some are around 400M but some end up GB.
Thanks. Any clue is appreciated.
I am not sure if this is a doable thing in DOS, maybe using the debug command? I have text files to be chopped off the first two lines and hopefully the last three lines. The biggest challenging is the text's size, some are around 400M but some end up GB.
Thanks. Any clue is appreciated.
- 21 Apr 2014 13:14
- Forum: DOS Batch Forum
- Topic: How to write this script
- Replies: 8
- Views: 5175
Re: How to write this script
Thank you so much for your help, your code is beautifully working here.
- 21 Apr 2014 12:15
- Forum: DOS Batch Forum
- Topic: How to write this script
- Replies: 8
- Views: 5175
Re: How to write this script
All the contents in 20140428 are expected to be copied over into new folders: 20140505, 20140512, 20140519, etc All the contents in 20140429 are expected to be copied over into new folders: 20140506, 20140513, 20140520, etc All the contents in 20140430 are expected to be copied over into new folders...
- 21 Apr 2014 11:03
- Forum: DOS Batch Forum
- Topic: How to write this script
- Replies: 8
- Views: 5175
Re: How to write this script
Thank you so much for the complex code, it's partially working: The subfolders in 20140428 are copied to 20140505, however, the subfolders in 20140429 are not copied over to 20140506 (0428 were copied over), actually all the subfolders in new folders are from 20140428, how can the code be modified? ...
- 21 Apr 2014 05:54
- Forum: DOS Batch Forum
- Topic: How to write this script
- Replies: 8
- Views: 5175
Re: How to write this script
Thanks. I want to copy 20140428 to new folders with the same format for all Mondays in the year, new folders are named as 20140505 20140512 20140519 etc, and same to other week days ,
- 20 Apr 2014 20:40
- Forum: DOS Batch Forum
- Topic: How to write this script
- Replies: 8
- Views: 5175
How to write this script
Hello, I have seven folders to be replicated. The seven folders are named as 20140428, 20140429, 20140430, 20140501, 20140502, 20140503, 20140504 All the three subfolders and their files in the seven folders are to be replicated into the rest weeks in 2014. Can anyone help me with a script? Thank yo...
- 22 Jul 2011 14:01
- Forum: DOS Batch Forum
- Topic: How do I create these backup folders and manage them? Thanks
- Replies: 7
- Views: 6789
Re: How do I create these backup folders and manage them? Th
1. Do I need to have a /ei option? or just /e
2. Can I add /y option to all copy commands to avoid confirmation?
3. What's the difference between copy and xcopy?
Thank you again very much for your kind help
2. Can I add /y option to all copy commands to avoid confirmation?
3. What's the difference between copy and xcopy?
Thank you again very much for your kind help
- 21 Jul 2011 10:04
- Forum: DOS Batch Forum
- Topic: How do I create these backup folders and manage them? Thanks
- Replies: 7
- Views: 6789
Re: How do I create these backup folders and manage them? Th
Thank you very much. I will do it later
- 20 Jul 2011 11:48
- Forum: DOS Batch Forum
- Topic: How do I create these backup folders and manage them? Thanks
- Replies: 7
- Views: 6789
Re: How do I create these backup folders and manage them? Th
It's not double posting.
In the last post, different files are created, renamed, re-created. That code is working perfectly.
In this post, I want to do on folders instead of files. So this is not double posting although looks so similar...
Sorry for this.
In the last post, different files are created, renamed, re-created. That code is working perfectly.
In this post, I want to do on folders instead of files. So this is not double posting although looks so similar...
Sorry for this.
- 20 Jul 2011 06:50
- Forum: DOS Batch Forum
- Topic: How do I create these backup folders and manage them? Thanks
- Replies: 7
- Views: 6789
How do I create these backup folders and manage them? Thanks
Hi folks, I have a backup requirement, I need to do a weekly backup and maintain 4 week's history, so at the first I want to make 1 folder called BackupWk1, and then BackupWk2 at the second week, BackupWk3 at the third week, BackupWk4 at the fourth week. All the source files will need to be copied i...
- 12 Jul 2011 13:09
- Forum: DOS Batch Forum
- Topic: How to do this task?
- Replies: 4
- Views: 4647
Re: How to do this task?
You rock buddy!!! Thank you very much.
- 12 Jul 2011 12:06
- Forum: DOS Batch Forum
- Topic: How to do this task?
- Replies: 4
- Views: 4647
Re: How to do this task?
Thank you so much for your prompt reply. One more question: How about if I need to make a slight change: There is always a fix name backup file on server. And the backup file on backup server are named: wk1.bak, wk2.bak, wk3.bak and wk4.bak When copied to the backup server, how do I delete wk1.bak, ...
- 12 Jul 2011 09:42
- Forum: DOS Batch Forum
- Topic: How to do this task?
- Replies: 4
- Views: 4647
How to do this task?
Hi folks, I haven't done this for too long, I hope you guys can refresh my brain for it: I have a folder which stores weekly update files copied from another server. I need to keep only 4 files. So every time I run the batch file, I want to check the number of files, if it's less than 4, then do not...