Go Back > Forum > Baan SIGs > Code & Utilities

User login

Frontpage Sponsor


How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
200 - 500 GB
500 - 800 GB
800 - 1200 GB
1200 - 1500 GB
1500 - 2000 GB
> 2000 GB
Total votes: 83

Baanboard at LinkedIn

Reference Content

Thread Tools Display Modes
Old 23rd June 2013, 09:25
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Join Date: Sep 2012
Location: India
Posts: 2,382
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)


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):-
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.

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. :)


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


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

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

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 09:14
Script problem when converting to Windows 2003 and SQLServer 2005 marwest98 Tools Development 8 22nd July 2008 22:27
change to older version in script raj20033002 Tools Development 1 10th March 2003 16:06

All times are GMT +2. The time now is 19:42.

©2001-2018 - -