Search found 43 matches
- 29 Jul 2015 17:48
- Forum: DOS Batch Forum
- Topic: 2 questions
- Replies: 15
- Views: 10473
Re: 2 questions
Hi Aacini and Foxidrive, I do honestly apologize, it was not my intention to change the scope of the batch file. I, my fault not yours, completely misunderstood how the DateAdd function was defining the time. My assumption came from the testing of the batch file, as it was separating out data that h...
- 29 Jul 2015 15:19
- Forum: DOS Batch Forum
- Topic: 2 questions
- Replies: 15
- Views: 10473
Re: 2 questions
oh sorry i thought that was what the code was defining. in this part of the code, I thought the "now" was defining the time as the time you are running it. That was the way it was appearing to function. echo >"%temp%\%~n0.vbs" s1=DateAdd("d",0,now) echo >>"%temp%\%...
- 29 Jul 2015 14:35
- Forum: DOS Batch Forum
- Topic: 2 questions
- Replies: 15
- Views: 10473
Re: 2 questions
I had tested that previously and it didn't seem to work. My apologies for not updating after your post prior. The code posted in your last update creates the Inside date file correctly but was not generating the files. I changed the "||" to "&&" and this seems to have cor...
- 29 Jul 2015 12:55
- Forum: DOS Batch Forum
- Topic: 2 questions
- Replies: 15
- Views: 10473
Re: 2 questions
Hi Foxidrive, You are correct, the change to this did not accomplish what i was looking for. I do have 2 questions. 1. if we go back to the code that i have that is working, can we change the 3rd day to be 2359 instead of NOW? And I need to keep the files separate if there are multiple originals in ...
- 28 Jul 2015 12:15
- Forum: DOS Batch Forum
- Topic: 2 questions
- Replies: 15
- Views: 10473
Re: 2 questions
Hi Foxidrive, The original code works. the largest file that would go through this program would only be approximaltely 360kb and at most there would be 3 files. My only problem now, well 2 problems, is ideally the PAUSE would only occur when the Outside date file contains data. And the code i used ...
- 28 Jul 2015 11:00
- Forum: DOS Batch Forum
- Topic: 2 questions
- Replies: 15
- Views: 10473
Re: 2 questions
Update *edited to include latest update* I was able to get the 2 files created and the filename removed from both of the files. Is there a way to get the "Pause" to only happen IF there is something created in the "Outside date.txt" file? Code used below. @echo off set "file...
- 28 Jul 2015 10:30
- Forum: DOS Batch Forum
- Topic: 2 questions
- Replies: 15
- Views: 10473
Re: 2 questions
Hi Foxidrive, The code is working, but 2 concerns. It is adding the original file name to the beginning of the copied code, this will cause errors in the program that reads the file, it also does not create a file with the good dates. Both of these are my fault for not explaining completely the requ...
- 28 Jul 2015 10:11
- Forum: DOS Batch Forum
- Topic: 2 questions
- Replies: 15
- Views: 10473
Re: 2 questions
Hi Foxidrive,
Thank you for the quick response.
you are correct, i want to redirect the information from a file that do not fall with the set date range. The range would be today, tomorrow and the day after.
I will test the code and see if it works.
Thanks
Thank you for the quick response.
you are correct, i want to redirect the information from a file that do not fall with the set date range. The range would be today, tomorrow and the day after.
I will test the code and see if it works.
Thanks
- 27 Jul 2015 12:30
- Forum: DOS Batch Forum
- Topic: 2 questions
- Replies: 15
- Views: 10473
2 questions
Hello all, You have all been a great resource before I'm hopeful you can help again. I'm looking for 2 or more bits of coding to add to a script. 1.a. Filter out any lines that date is not with the range of today through T+2. 1.b. send the filtered out lines to a separate file for review 2. create a...
- 05 Feb 2014 11:48
- Forum: DOS Batch Forum
- Topic: Couple Variable questions in Fsearch script
- Replies: 39
- Views: 25271
Re: Couple Variable questions in Fsearch script
Thanks Foxidrive, it is working perfectly. I knew it was something simple I was over looking.
- 04 Feb 2014 10:52
- Forum: DOS Batch Forum
- Topic: Couple Variable questions in Fsearch script
- Replies: 39
- Views: 25271
Re: Couple Variable questions in Fsearch script
TEST,PATIENT 1 [i]TE[/i]ST-1 ER1BE-101-A ER02541119 ERH 005024 20140113 0800 1 E0289075 TEST-1 The part in italics is that I was looking at pulling to change the name of the file with. It starts at character 32 and is 2 characters long. Thanks
- 03 Feb 2014 17:32
- Forum: DOS Batch Forum
- Topic: Couple Variable questions in Fsearch script
- Replies: 39
- Views: 25271
Re: Couple Variable questions in Fsearch script
Yeah, staff are running this ~15 times a day; most of the time it is a single file being separated, but there are a few times during the day where there are multiple files in the folder.
- 03 Feb 2014 12:13
- Forum: DOS Batch Forum
- Topic: Couple Variable questions in Fsearch script
- Replies: 39
- Views: 25271
Re: Couple Variable questions in Fsearch script
Hi again, Sorry for bringing up this issue again, we had an issue with a user not realizing the script was ran and this caused a downstream error so the request was to name the separated file based on the contents. I looked through the forum here and found 3 different coding fragments that should wo...
- 04 Nov 2013 17:31
- Forum: DOS Batch Forum
- Topic: Couple Variable questions in Fsearch script
- Replies: 39
- Views: 25271
Re: Couple Variable questions in Fsearch script
My apologies Foxidrive, I've been looking at so many different options on how to fix this I completely missed that this was a batch file
This appears to work, so far, I will test with another user that had issues but I think we have it.
Thank you again very much

This appears to work, so far, I will test with another user that had issues but I think we have it.
Thank you again very much

- 04 Nov 2013 13:06
- Forum: DOS Batch Forum
- Topic: Couple Variable questions in Fsearch script
- Replies: 39
- Views: 25271
Re: Couple Variable questions in Fsearch script
Not sure if WSH is locked down, but it is giving me an error.
Line 1
Char 14
Error Expected End of Statement
Cod 500a0401
I deleted line 1 and now get this error.
Line 2
Char 7
Error Syntax Error
code 800a03ea
Line 1
Char 14
Error Expected End of Statement
Cod 500a0401
I deleted line 1 and now get this error.
Line 2
Char 7
Error Syntax Error
code 800a03ea