Search found 544 matches

by SIMMS7400
12 Apr 2016 18:08
Forum: DOS Batch Forum
Topic: Read text file and output to another file - depending on batch file logic
Replies: 2
Views: 3174

Read text file and output to another file - depending on batch file logic

Folks - I have a need to do the following: Read the first line of a text file, grab that value, and then spool to another file as the value of the variable (shown below), based off conditions specified in the batch file and then go to 2nd line of text file and so on and so forth. The amount of lines...
by SIMMS7400
25 Mar 2016 20:03
Forum: DOS Batch Forum
Topic: BLAT - Unable to configure
Replies: 7
Views: 7754

Re: BLAT - Unable to configure

Thank you, Fox. What port would you recommend? 465?
by SIMMS7400
25 Mar 2016 19:56
Forum: DOS Batch Forum
Topic: BLAT - Unable to configure
Replies: 7
Views: 7754

Re: BLAT - Unable to configure

Thank you for the reply.

Yes, I'd like blat to be installed using my gmail account, but recently tried with an exchange account. Going forward, as I said, I'd like to install blat using my gmail account.
by SIMMS7400
25 Mar 2016 19:14
Forum: DOS Batch Forum
Topic: BLAT - Unable to configure
Replies: 7
Views: 7754

BLAT - Unable to configure

Hi Guys - I'm having a very difficult time trying to configure blat. Here is how I set it up: Install: Call C:\Windows\System32\blat.exe -install smtp.gmail.com sender@gmail.com I then get the follow message: Blat v3.2.12 (build : Dec 4 2015 19:32:55) 32-bit Windows, Full, Unicode SMTP server set to...
by SIMMS7400
22 Mar 2016 07:16
Forum: DOS Batch Forum
Topic: Conditional section of batch file wont write to log files
Replies: 6
Views: 5606

Re: Conditional section of batch file wont write to log files

Hi Team -

Thank you for your replies!

Let me remove setlocal and see what that does. Also, ALL other log files are getting written to except the ones following Check for hung ESSSVR processes.

Thanks, ill report back!
by SIMMS7400
21 Mar 2016 14:20
Forum: DOS Batch Forum
Topic: Conditional section of batch file wont write to log files
Replies: 6
Views: 5606

Conditional section of batch file wont write to log files

Hi Folks - I have a batch script I'm using for a shut down procedure but recently had to add a section to check for hung processes. However, When I want to write any ECHO's in that section to my %logfile%, it wont. The section labeled Check for Hung ESSSVR Processes at %TIME% is where my echo's wont...
by SIMMS7400
19 Jan 2016 07:28
Forum: DOS Batch Forum
Topic: Copying across servers with tokens
Replies: 11
Views: 7501

Re: Copying across servers with tokens

Thank you for the replies folks.

I'll explore other options!
by SIMMS7400
16 Jan 2016 13:07
Forum: DOS Batch Forum
Topic: Batch File to check second character of each string in .txt file : 50% complete - Need Help
Replies: 18
Views: 13503

Re: Batch File to check second character of each string in .txt file : 50% complete - Need Help

Team- Thank you very much for the replies. Its very much appreciated! I apologize for not getting back to you all sooner. I've confirm the previous solutions work as expected, - but in order to build my knowledge base more I've been tweaking and 'breaking' the solutions to see how exactly it works a...
by SIMMS7400
16 Jan 2016 13:02
Forum: DOS Batch Forum
Topic: Copying across servers with tokens
Replies: 11
Views: 7501

Re: Copying across servers with tokens

I'm not sure what problem you see in your usage with the script. %SERVICEACCOUNT% is the password variable - how it is being populated? You can use a script that prompts you for your password - but how do you determine what your password is? You'll have to excuse my lack of RSA token knowledge. Wel...
by SIMMS7400
16 Jan 2016 13:01
Forum: DOS Batch Forum
Topic: Copying across servers with tokens
Replies: 11
Views: 7501

Re: Copying across servers with tokens

foxidrive wrote:ctakacs didn't follow up in his previous thread here to say thanks or tell us he had a solution.

It's up to you guys but it may not be worth continuing this thread.



I don't have a solution yet.
by SIMMS7400
16 Jan 2016 08:35
Forum: DOS Batch Forum
Topic: Copying across servers with tokens
Replies: 11
Views: 7501

Re: Copying across servers with tokens

ShadowThief wrote:Pretty sure that would defeat the purpose of RSA tokens :wink:


Precisely - so is there a way around this?
by SIMMS7400
15 Jan 2016 22:10
Forum: DOS Batch Forum
Topic: Copying across servers with tokens
Replies: 11
Views: 7501

Re: Copying across servers with tokens

Squashman - That is correct. I was wondering how to establish that connection using a batch file. Normally, I would just pass the username and password via batch file as shown above. However, since my RSA password (token) changes every 30 seconds, how does one incorporate that into a batch file? Is ...
by SIMMS7400
15 Jan 2016 17:24
Forum: DOS Batch Forum
Topic: Copying across servers with tokens
Replies: 11
Views: 7501

Copying across servers with tokens

Good Evening - I have a need to copy files across servers, however at this particular client, we use tokens to log onto servers, which expire every 30 seconds. Is there a way to copy files using a batch file when using tokens? This is the script I use all other times when copying to another windows ...
by SIMMS7400
07 Jan 2016 14:00
Forum: DOS Batch Forum
Topic: Batch File to check second character of each string in .txt file : 50% complete - Need Help
Replies: 18
Views: 13503

Re: Batch File to check second character of each string in .txt file : 50% complete - Need Help

@echo off setlocal EnableDelayedExpansion REM This is to allow for variable editing within the for loop for /f "delims=" %%A in (test1.txt) do ( REM This loops through each line in test.txt REM and performs everything within () to the line REM which is held in %%A set a=%%A IF "%var:...
by SIMMS7400
07 Jan 2016 13:34
Forum: DOS Batch Forum
Topic: Batch File to check second character of each string in .txt file : 50% complete - Need Help
Replies: 18
Views: 13503

Re: Batch File to check second character of each string in .txt file : 50% complete - Need Help

@echo off setlocal EnableDelayedExpansion REM This is to allow for variable editing within the for loop for /f "delims=" %%A in (test1.txt) do ( REM This loops through each line in test.txt REM and performs everything within () to the line REM which is held in %%A set a=%%A IF "%var:...