Search found 9 matches
- 17 Dec 2014 18:05
- Forum: DOS Batch Forum
- Topic: Best ways to redirect to log from within the batch
- Replies: 5
- Views: 4415
Re: Best ways to redirect to log from within the batch
3. Correct. Windows does not have a native TEE function like Unix and Linux do. Hej Squashman, Can you think of something else I can do? I'd really like to avoid appending the >> logfile to each line. And I can't include two files or the customers will screw it up somehow. I tried the other @rem su...
- 17 Dec 2014 18:03
- Forum: DOS Batch Forum
- Topic: not exiting on exit selection until second time
- Replies: 18
- Views: 10712
Re: not exiting on exit selection until second time
thanks Squashman,
I tried your tests and I saw some issues. It was working for me before, but I made the change to my file because it never hurts.
I tried your tests and I saw some issues. It was working for me before, but I made the change to my file because it never hurts.
- 17 Dec 2014 17:18
- Forum: DOS Batch Forum
- Topic: not exiting on exit selection until second time
- Replies: 18
- Views: 10712
Re: not exiting on exit selection until second time
Seems to have worked. I even get the expected output files from the commands that I run. c:\Tools>test ======================================== ======================================== Please place your input file into the c:\Test_Ephe\Input directory now. . . Only after the file is placed in the in...
- 17 Dec 2014 16:53
- Forum: DOS Batch Forum
- Topic: Best ways to redirect to log from within the batch
- Replies: 5
- Views: 4415
Best ways to redirect to log from within the batch
So New question. I know that there are a few ways to do this, but I'd like to find an easier way. So far I have the items listed below that I know of, but I would like something simple that I can add to the beginning of the .bat file without too much trouble. I would like all of the echo, user input...
- 17 Dec 2014 16:44
- Forum: DOS Batch Forum
- Topic: not exiting on exit selection until second time
- Replies: 18
- Views: 10712
Re: not exiting on exit selection until second time
I have tested it with files with spaces in their filenames. They work. I think that we are done with this specific issue as it was a matter of closing the call that was giving me the issue. I have and will have other issues, but I'll post anew should I exhaust all possible routes to resolution. And ...
- 17 Dec 2014 15:07
- Forum: DOS Batch Forum
- Topic: not exiting on exit selection until second time
- Replies: 18
- Views: 10712
Re: not exiting on exit selection until second time
Squashman wrote:Or you could even do this.Code: Select all
mkdir C:\Test_Ephe Mkdir 2>nul
mkdir C:\Test_Ephe\Input 2>nul
Mkdir c:\Test_Ephe\Output 2>nul
Thanks Squashman, I went ahead and went this route. It's been 15 years since I touched a .bat file besides running basic commands.
- 17 Dec 2014 14:41
- Forum: DOS Batch Forum
- Topic: not exiting on exit selection until second time
- Replies: 18
- Views: 10712
Re: not exiting on exit selection until second time
I am calling it because I wanted to reuse this. This is just the beginning of the tool and I would prefer not to rewrite things and reuse where possible. I guess that I don't have to but it's been a while since I played with batch files so if there is a simpler way, please share.
- 17 Dec 2014 10:13
- Forum: DOS Batch Forum
- Topic: not exiting on exit selection until second time
- Replies: 18
- Views: 10712
Re: not exiting on exit selection until second time
Thanks for the tip, tried adding it, didn't help. I tried it with both GOTO :eof and exit /b. I can see that instead of exiting, it looks like it is going to :getvalue which in turn sends it to :InputDesignation. Why would it go to :getvalue when I'm telling it to go to :eof? Starting to miss bash a...
- 16 Dec 2014 18:46
- Forum: DOS Batch Forum
- Topic: not exiting on exit selection until second time
- Replies: 18
- Views: 10712
not exiting on exit selection until second time
First caveat, I have not made a batch file for about 15 years. Haven't had a use for anything like this. So I am trying to create a simple batch file for our customers to use for testing their files against certain tools like Ghostscript and imagemagick. The issue is not with those, the issue is in ...