Category Archives: others scripting language

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. for (( i = 2 ; i <= tfile ; i++ )) do mfile=`cat $data |head -$i|tail -1|tr -s ” ” ” ” |cut -f8 -d” “` mdate=`grep -i… Read More »

%~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 at the command prompt and expands to the drive letter and path of the current directory (which can change e.g. by using the CD command) %~dp0 is only… Read More »

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 express at 5 pm daily with the attachement. if anybody has any idea about this plz write to me help would be appreciated.

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 = “””” & sProgDir & “myperl.pl” & “””” sCmd = sExec & ” ” & sArgs oShell.Run(sCmd) Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

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 @ twitter.com/RajeshKumarIn

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 = WScript.CreateObject(“WScript.Shell”) If WScript.Arguments.length = 0 Then Set ObjShell = CreateObject(“Shell.Application”) ObjShell.ShellExecute “wscript.exe”, “””” & _ WScript.ScriptFullName & “””” &_ ” RunAsAdministrator”, , “runas”, 1 Else Regards, Rajesh Kumar… Read More »

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 display the names added in the array. rajeshkumar replied the topic: function in vb script Welcome to board…. try following snippet… Sub Funstr(“str1”, “str2”) a=Array(str1,str2) document.write(a(0)) document.write(a(1)) End… Read More »