Archive for the ‘others scripting language’ Category:

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…)

Tags:

%~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.

Tags:

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 system time without prompting for new time. But If one needs more granular output, say in HH:MM:SS format, here is a way out, use “echo %TIME%” which expands

(Read More…)

Tags:

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

Tags:

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

Tags:

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…)

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 Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

Tags:

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???

Tags:

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…)

Tags:
© Tutorials
CyberChimps