Instrumentating class file using Ant in Cobertura
rajeshkumar created the topic: Instrumentating class file using Ant in Cobertura Instrumentating class file using Ant in Cobertura Cobertura’s documentation gives the following example to show how…
A simple Ruby method to send email
scmuser created the topic: A simple Ruby method to send email A simple Ruby method to send email [code language=”css”] require ‘net/smtp’ def send_email(to,opts={}) opts[:server] ||= ‘localhost’…
Add each array element to the lines of a file in ruby
scmuser created the topic: Add each array element to the lines of a file in ruby Add each array element to the lines of a file in…
What is the way to iterate through an array in Ruby?
scmuser created the topic: What is the way to iterate through an array in Ruby? What is the way to iterate through an array in Ruby? This…
Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed
scmuser created the topic: Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Create a Ruby…
Common ways to read a file in Ruby?
scmuser created the topic: Common ways to read a file in Ruby? [code language=”css”] File.open(“my/file/path”, “r”) do |f| f.each_line do |line| puts line end end # File…
How to process every line in a text file with Ruby
scmuser created the topic: How to process every line in a text file with Ruby Example 1 [code language=”css”] # ruby sample code. # process every line…
Script for time stamp update.
scmuser created the topic: Script for time stamp update. write a batch Script for time stamp update? sgadmin replied the topic: Re:Script for time stamp update. [code…
%~dp0 VS %cd%
rajeshkumar created the topic: %~dp0 VS %cd% Use of %~dp0 and Use of %cd% They are not equivalent. %cd% is available either to a batch file or…
Send mail using batch script thorugh SMTP
scmuser created the topic: Send mail using batch script thorugh SMTP Hello, hi i wnt to create batch file that will automtcally send my email through outlok…
DOS Command to display time without prompting for New time
scmuser created the topic: DOS Command to display time without prompting for New time I think most of us know the DOS command “time/T” which displays current…
Call perl script from vbscript
rajeshkumar created the topic: Call perl script from vbscript Call perl script from vbscript Set oShell = CreateObject(“WScript.Shell”) sProgDir = “C:\Program Files\My Programs\perl\” sArgs = “-i” sExec…
Call batch script from vbscript
rajeshkumar created the topic: call batch script from vbscript Call batch script from vbscript dim shell set shell=createobject(“wscript.shell”) shell.run “INSTALL.bat” set shell=nothing Regards, Rajesh Kumar Twitt me…
How to run scripts as administrator in Windows using VBS?
rajeshkumar created the topic: How to run scripts as administrator in Windows using VBS? How to run scripts as administrator in Windows using VBS? Set WshShell =…
How to Run a Program as an Administrator in Windows
rajeshkumar created the topic: How to Run a Program as an Administrator in Windows How to Run a Program as an Administrator in Windows Good URL- www.sevenforums.com/tutorials/11841-run-administrator.html…
Passing command line arguments separated by comma
scmuser created the topic: passing command line arguments separated by comma Any sample code in vb script to pass command line arguments separated by comma??? Rajesh KumarI’m…
Function in vb script
rajani created the topic: function in vb script Develop a function that accepts a string of names separated by comma add those names in an array and…
Throw new Error(‘npm.load() required’)
rajeshkumar created the topic: throw new Error(‘npm.load() required’) Error: C:\Program Files\nodejs\node_modules\npm\lib\npm.js:37 throw new Error(‘npm.load() required’) ^ Error: npm.load() required at Object.npm.config.get (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:37:11) at exit (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:49:27)…
Check the exit code of the last command in batch file?
rajeshkumar created the topic: check the exit code of the last command in batch file? Test for a return code greater than or equal to 1: if…
Get the application exit code from a Windows command line?
rajeshkumar created the topic: get the application exit code from a Windows command line? Two ways… (1) The results are stored in a pseudo environment variable named…
Create a txt file using batch file in a specific folder
rajeshkumar created the topic: Create a txt file using batch file in a specific folder @echo off echo.>”d:\testing\dblank.txt” This creates a file containing a blank line (CR…
Delete files and folder using batch commands…
rajeshkumar created the topic: Delete files and folder using batch commands… del /s /q bin – deletes all files recursively rmdir bin – delete empty folders.. Regards,…
Debut Video Capture Batch Script Automation
rajeshkumar created the topic: Debut Video Capture Batch Script Automation Debut Video Capture Batch Script Automation Start Script Set WshShell = CreateObject(“WScript.Shell”) WshShell.Run chr(34) & “C:\Tools\start.bat” &…
Tips for learing phyton scripting
suresh created the topic: Tips for learing phyton scripting Hi everyone. Can any one suggest project for becoming the best in python scripting. Any project where we…
Run a .bat file using python code
rajeshkumar created the topic: Run a .bat file using python code from subprocess import Popen p = Popen(“batch.bat”, cwd=r”C:\Path\to\batchfolder”) stdout, stderr = p.communicate() Regards, Rajesh Kumar Twitt…
Perforce Python Script Collection.
rajeshkumar created the topic: Perforce Python Script Collection. Implement a script that will do following: 1. Read config file. This file will contain following settings: a. For…
Remove Control ^M from files
tpatil created the topic: Remove Control ^M from files Single file method perl -pi -e “s/\r//” filename.txt Multiple File Method find . -type f -exec perl -pi…
I need to a perl script
rajeshkumar created the topic: i need to a perl script Hi , There is a file called test.txt what are all the different ways BEGIN: test 1…
The difference between my and local
rajeshkumar created the topic: The difference between my and local There is a subtle difference. In the example below, $::a refers to $a in the ‘global’ namespace….
