Search found 227 matches

by taripo
22 Sep 2014 07:59
Forum: DOS Batch Forum
Topic: Where is Start stored / What does it run under?
Replies: 4
Views: 3946

Where is Start stored / What does it run under?

If I do dir start.exe /s/b<enter> I don't see it anywhere. and if I do start /b xcopy /? <enter> so start is paused.. and looking in task manager or process explorer, I don't see start.. Also though.. When I run xcopy /? I don't even see xcopy.exe flash into and out of existence in task manager
by taripo
21 Sep 2014 16:02
Forum: DOS Batch Forum
Topic: sendemail only runs from cmd launched from scheduler?!
Replies: 18
Views: 17454

Re: sendemail only runs from cmd launched from scheduler?!

perl is normally an interpreted language, but it can be compiled, i'll look into how to do that, and give that a try.
by taripo
21 Sep 2014 12:25
Forum: DOS Batch Forum
Topic: sendemail only runs from cmd launched from scheduler?!
Replies: 18
Views: 17454

Re: sendemail only runs from cmd launched from scheduler?!

I have just run process explorer from task scheduler, ticking the box "run with highest privileges" and as you say penpen, now it must have system rights, as it is showing processes from both cmd prompts e.g. the DLLs used by calc.exe from both cmd prompts. Does Task Manager show that proc...
by taripo
21 Sep 2014 10:17
Forum: DOS Batch Forum
Topic: sendemail only runs from cmd launched from scheduler?!
Replies: 18
Views: 17454

Re: sendemail only runs from cmd launched from scheduler?!

For those variables, in both command prompts, they all have these same values- PROCESSOR_ARCHITECTURE=AMD64 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) CommonProgra...
by taripo
21 Sep 2014 08:02
Forum: DOS Batch Forum
Topic: sendemail only runs from cmd launched from scheduler?!
Replies: 18
Views: 17454

Re: sendemail only runs from cmd launched from scheduler?!

thanks penpen. Looking in dependency walker, I can't even find the SSLEAY32.DLL that the popup refers to Dependency walker says "Errors were detected when processing "c:\blah\sendemailtls.exe" see the log window for details Error: At least one module has an unresolved import due to a ...
by taripo
20 Sep 2014 09:00
Forum: DOS Batch Forum
Topic: sendemail only runs from cmd launched from scheduler?!
Replies: 18
Views: 17454

Re: sendemail only runs from cmd launched from scheduler?!

As mentioned in post #3 in the thread, I have since found that sendemail.pl works, it doesn't have that dll popup error. I'd be interested in vbscripts and other 3rd party command line based smtp utilities that do smtp with ssl/tls But the question here is one of understanding.. What is different be...
by taripo
20 Sep 2014 08:43
Forum: DOS Batch Forum
Topic: sendemail only runs from cmd launched from scheduler?!
Replies: 18
Views: 17454

Re: sendemail only runs from cmd launched from scheduler?!

They do have different environment variables.. a)slightly different PATH, the regular one has a PATH that includes a perl directory - I recently installed that and b)the regular one has OPENSSL_CONF which is from openssl which I recently installed. I guess perhaps the task scheduler one will have th...
by taripo
20 Sep 2014 04:55
Forum: DOS Batch Forum
Topic: sendemail only runs from cmd launched from scheduler?!
Replies: 18
Views: 17454

Re: sendemail only runs from cmd launched from scheduler?!

thanks.. the thing is, if I do echo %USERPROFILE% they both show the same username not Administrator, though both have admin privileges I have switched to installing perl and running sendemail.pl instead of sendemail.exe that works in both cmd windows. Though there is still the cmd question.. and th...
by taripo
19 Sep 2014 19:19
Forum: DOS Batch Forum
Topic: sendemail only runs from cmd launched from scheduler?!
Replies: 18
Views: 17454

sendemail only runs from cmd launched from scheduler?!

I have a program called sendemail There are two versions one with something called 'TLS' and one without. I want the 'TLS' one. That's here m I am running sendemail.exe from that zip. And I have two command prompts open. Both have the same value for %PATH% One command prompt, is opened via this tech...
by taripo
13 Sep 2014 15:55
Forum: DOS Batch Forum
Topic: echo multiple lines without an ending of space new line
Replies: 23
Views: 17747

Re: echo multiple lines without an ending of space new line

Thanks And I see outside of a batch file, this works - as you say, escaping the exclamation marks No doubt you know this but i'll mention this for others Regarding outside of a batch file this works whether the cmd window you are in is cmd /v:on or not C:\>cmd /v:on /c "<nul set /p=abc^!LF^!abc...
by taripo
13 Sep 2014 12:46
Forum: DOS Batch Forum
Topic: echo multiple lines without an ending of space new line
Replies: 23
Views: 17747

Re: echo multiple lines without an ending of space new line

thanks, that is impressive. You've 'rescued' echo, showing amongst other things, how it can be piped to xxd -p in a batch file or by using cmd /c But is it possible to do the same for set (that'd be useful as set is so flexible in not putting an 0d0a at the end and set can be used with the !LF! and ...
by taripo
12 Sep 2014 08:25
Forum: DOS Batch Forum
Topic: echo multiple lines without an ending of space new line
Replies: 23
Views: 17747

Re: echo multiple lines without an ending of space new line

whoops.. ok I added set CR= and del a.txt to the top. I see it does work without usebackq though. C:\blahh>type a.bat :: using cmd /v:on set CR= del a.txt for /F %%a in ('copy /z %~dpf0 nul') DO ( set "cr=%%a" ) <nul set /p "=abc!CR!!CR!!CR!def" > a.txt C:\blahh>xxd -p a.txt 6162...
by taripo
12 Sep 2014 05:12
Forum: DOS Batch Forum
Topic: echo multiple lines without an ending of space new line
Replies: 23
Views: 17747

Re: echo multiple lines without an ending of space new line

I see it requires EnableDelayedExpansion and !VAR! But why "usebackq"? And why(for the do nothing), the copy /z. I just made the part between 'for' and 'do' a bit shorter and simpler and simpler looking. I know the importance of LF but didn't include it here 'cos you've shown how to do tha...
by taripo
11 Sep 2014 08:08
Forum: DOS Batch Forum
Topic: echo multiple lines without an ending of space new line
Replies: 23
Views: 17747

Re: echo multiple lines without an ending of space new line

Is there a way to get a CRLF there(what windows uses) instead of just an LF(what *nix uses)?
by taripo
11 Sep 2014 06:09
Forum: DOS Batch Forum
Topic: echo multiple lines without an ending of space new line
Replies: 23
Views: 17747

Re: echo multiple lines without an ending of space new line

Thanks jeb that is very interesting. I see it works in a batch file How do you do it from the command line, outside of a batch file? My attempt, from the command line, even at your stage 1/2, was a flop. I did cmd /v:on C:\blah>set ^"LF=^ More? set /p "=abc!LF!def" < nul C:\blah>echo ...