Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 23rd June 2013, 08:25
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,286
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
Post 3GL/4GL Script for USER TRACKING! (Windows Version)

Hello,

The idea came from NPRao's this Thread!. The difference is that, this is not a bat file and can be used by any user and it is for Windows Platform. A special thanks to Vamsi again for his support.

I have developed a utility, that uses a 3GL/4GL script to track the session which a user has currently opened.

Requirements(On Server):-
Quote:
1. Windows Operating System
2. A bat file
3. A text file
4. A Scheduled task on server to run the bat file with administrator privileges.
The process:-


Place the bat file and text file in a folder (in my case "new") and share the folder across the network. Create a new folder ("new1" in my case) which will store the output files.


Quote:
A.The program reads a text file and adds username to it and creates a bat file.
B. This bat file is executed by using a scheduled task which is invoked using a second bat file (already present).
C. The step B produces a text file which gives the PID of user. This PID is called by a function to get the list of session accessed by user.
You can either use it as a 3GL script to track a single user or you can make a print session which will call a 3GL script with user name as parameter.

Attaching the zip file with the contents. (Kindly rename the task.txt to task.bat after downloading)

Any questions, comments or suggestions are welcomed. :)

NOTE:-

Users should have full permission for folder C:\Windows\System32\tasks.
Attached Files
File Type: txt task.txt (23 Bytes, 153 views)
File Type: txt source.txt (95 Bytes, 137 views)
File Type: bc Script.bc (4.8 KB, 138 views)
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!

Last edited by bhushanchanda : 23rd June 2013 at 10:14.
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Question mr_suleyman Tools Development 37 11th November 2016 08:14
Script problem when converting to Windows 2003 and SQLServer 2005 marwest98 Tools Development 8 22nd July 2008 21:27
change to older version in script raj20033002 Tools Development 1 10th March 2003 15:06


All times are GMT +2. The time now is 20:33.


©2001-2017 - Baanboard.com - Baanforums.com