Jump to content

Has anybody managed to set a scheduled task for anycomms to run?


Recommended Posts

Posted

Long story short, we've updated to windows 10 and need to add anycomms to the client computers that need it.

 

I'm thinking that as it's already on the sims server anyway, i can just run it periodically with a scheduled task.

 

Can't seem to figure it out though.

 

Cheers

 

WELL COME BACK ALL HAPPY NEW YEAR

Posted

Depends.

 

Yes you can do it. I know in Suffolk it's used to pay people\companies so the bursar might not like it automatically send files before they are super duper ready. Worth checking with the LA first, if you don't get very far, AVCO are friendly helpful people who are happy to help.

Posted

@jahilton2002

 

I've run it for the past 5 years using task scheduler from the server no problem.....

 

Create the task with the following attributes:

 

General Tab: Name = AnyComms.....Security Options User = System....Tick box Run with highest privileges....Configure for = Windows 7, Windows Server 2008R2

 

Triggers Tab: Weekly at 08.00 every Monday, Tuesday, Wednesday, Thursday, Friday

 

Actions Tab: Action = Start a program....Program/script: C:\Windows\system32\cmd.exe...Add Arguments = /c "C:\Program Files (x86)\AnyComms\schedule.cmd".....Start in = C:\Program Files (x86)\AnyComms

 

Conditions Tab: Tick Stop if the computer ceases to be idle......Power = Tick Start the task only if the computer is on AC Power...Tick Stop if the computer switches to battery power

 

Settings Tab: Tick Allow task to be run on demand.....Tick Stop the task if it runs for longer than 3 days....Tick If the running task does not end when requested, force it to stop

 

This is the cmd file required:

 

@echo off

echo mapping drive ...

net use (Your mapped Drive to your Sims) e.g = Drive: \\your Sims server name\your Sims folder name

 

echo Changing directory

cd "C:\Program Files (x86)\AnyComms"

 

echo Starting AnyComms client ...

start /wait WinRCS32.EXE /q

 

echo AnyComms finished

 

echo Closing IE ...

nircmdc.exe wait 5000

rem nircmdc.exe closeprocess iexplore.exe

taskkill /IM iexplore.exe /F

 

call schedule-email.cmd

 

exit

 

 

The E-mail function works too this is the email cmd required:

 

@echo off

 

set email_host=Host address of E-mail server

set email_to= whoevers e-mail you want to send the results too

set email_from= whichever e-mail account you want use to send the results from

set file=C:\AnyComms\Transfer.html

set out=%file%.txt

 

sed -e "s/<[^>]*>//g" -e "s/:(/: (/g" %file% > %out%

 

type %out% | blat.exe - -server %email_host% -f %email_from% -to %email_to% -s "AnyComms Update"

 

 

Obviously you will have to change parameters to suite your server.... the unhappy face is obviously a colon with the left bracket and not as depicted an unhappy face

 

Good luck....

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...