Skip to content

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
  • Scripting

    %~dp0 VS %cd%

    ByRajesh Kumar December 9, 2017January 9, 2020

    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 %~dp0 VS %cd%Continue

  • Scripting

    Send mail using batch script thorugh SMTP

    ByRajesh Kumar December 9, 2017January 9, 2020

    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.

    Read More Send mail using batch script thorugh SMTPContinue

  • Scripting

    DOS Command to display time without prompting for New time

    ByRajesh Kumar December 9, 2017January 9, 2020

    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 DOS Command to display time without prompting for New timeContinue

  • Scripting

    Call perl script from vbscript

    ByRajesh Kumar December 9, 2017January 9, 2020

    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

    Read More Call perl script from vbscriptContinue

  • Scripting

    Call batch script from vbscript

    ByRajesh Kumar December 9, 2017January 9, 2020

    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

    Read More Call batch script from vbscriptContinue

  • Scripting

    How to run scripts as administrator in Windows using VBS?

    ByRajesh Kumar December 9, 2017January 9, 2020

    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 scripts as administrator in Windows using VBS?Continue

  • Scripting

    How to Run a Program as an Administrator in Windows

    ByRajesh Kumar December 9, 2017January 9, 2020

    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

    Read More How to Run a Program as an Administrator in WindowsContinue

  • Scripting

    Passing command line arguments separated by comma

    ByRajesh Kumar December 9, 2017January 9, 2020

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

    Read More Passing command line arguments separated by commaContinue

  • Scripting

    Function in vb script

    ByRajesh Kumar December 9, 2017January 9, 2020

    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 Function in vb scriptContinue

  • Scripting

    Throw new Error(‘npm.load() required’)

    ByRajesh Kumar December 9, 2017January 9, 2020

    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) at process.errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:314:3) at process.EventEmitter.emit (events.js:95:17) at process._fatalException (node.js:272:26) Build step ‘Execute Windows batch command’ marked build as failure Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Throw new Error(‘npm.load() required’)Continue

  • Scripting

    Check the exit code of the last command in batch file?

    ByRajesh Kumar December 9, 2017January 9, 2020

    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 ERRORLEVEL 1 echo Error or if %ERRORLEVEL% GEQ 1 echo Error or test for a return code equal to 0: if %ERRORLEVEL% EQU 0 echo OK You can…

    Read More Check the exit code of the last command in batch file?Continue

  • Scripting

    Get the application exit code from a Windows command line?

    ByRajesh Kumar December 9, 2017January 9, 2020

    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 errorlevel so… echo Exit Code is %errorlevel% (2) and a special syntax of the if command: if errorlevel see if /? for details. For Example @echo off my_nify_exe.exe…

    Read More Get the application exit code from a Windows command line?Continue

  • Scripting

    Create a txt file using batch file in a specific folder

    ByRajesh Kumar December 9, 2017January 9, 2020

    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 + LF = 2 bytes). If you want the file empty (0 bytes) @echo off break>”d:\testing\dblank.txt” Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Create a txt file using batch file in a specific folderContinue

  • Scripting

    Delete files and folder using batch commands…

    ByRajesh Kumar December 9, 2017January 9, 2020

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

    Read More Delete files and folder using batch commands…Continue

  • Scripting

    Debut Video Capture Batch Script Automation

    ByRajesh Kumar December 9, 2017January 9, 2020

    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” & Chr(34), 0 Set WshShell = Nothing Stop Script Set WshShell = CreateObject(“WScript.Shell”) WshShell.Run chr(34) & “C:\Tools\stop.bat” & Chr(34), 0 Set WshShell = Nothing Regards, Rajesh Kumar Twitt me…

    Read More Debut Video Capture Batch Script AutomationContinue

  • Python

    Tips for learing phyton scripting

    ByRajesh Kumar December 9, 2017January 9, 2020

    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 actually use python scripting in build and release engineering side. – venki rajeshkumar replied the topic: Tips for learing phyton scripting Best would be to start with some…

    Read More Tips for learing phyton scriptingContinue

  • Python

    Run a .bat file using python code

    ByRajesh Kumar December 8, 2017January 9, 2020

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

    Read More Run a .bat file using python codeContinue

  • Perforce

    Perforce Python Script Collection.

    ByRajesh Kumar December 8, 2017February 1, 2025

    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 mail delivery (SMTP) b. For access to perforce server 2. Get from perforce a list of changes made since last script run time and get all updated files…

    Read More Perforce Python Script Collection.Continue

  • Perl

    Remove Control ^M from files

    ByRajesh Kumar December 8, 2017February 1, 2025

    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 -e “s/\r//” {} \; rajeshkumar replied the topic: Re:Remove Control ^M from files I used to do in shell using following command > 1,$s/^M//g Correct me if I…

    Read More Remove Control ^M from filesContinue

  • Perl

    I need to a perl script

    ByRajesh Kumar December 8, 2017February 1, 2025

    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 test 2 %%%%%%%%%% TEST TEST TEST test 3 END: need to grab all contents in between BEGIN and END: Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn rajeshkumar replied…

    Read More I need to a perl scriptContinue

  • Perl

    The difference between my and local

    ByRajesh Kumar December 8, 2017February 1, 2025

    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. ‘local’ temporarily changes the value of the variable, but only within the scope it exists in. $a = 3.14159; { local $a = 3; print “In block, \$a…

    Read More The difference between my and localContinue

  • Perl

    What is the meaning of rigging?

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: What is the meaning of rigging? Hi, Could you please tell me meaning of rigging in perl?

    Read More What is the meaning of rigging?Continue

  • Perl

    Parenthesis After Module Name And Without Parenths

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: parenthesis after module name and without parenths What is the difference between having a parenthesis after module name and without parenthsis after module name?? i.e Package::Module(); Package::Module;

    Read More Parenthesis After Module Name And Without ParenthsContinue

  • Perl

    Question Regarding to Eval Function

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: question regarding to eval function I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \’exec perl -S $0 ${1+\”$@\”}\’ if 0; $0 for script name $@ set if error occur

    Read More Question Regarding to Eval FunctionContinue

  • Perl

    Find a particular word in a paragraph

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Find a particular word in a paragraph Write a Perl script to find a particular word in a paragraph???

    Read More Find a particular word in a paragraphContinue

  • Perl

    Create a flat file database using perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Create a flat file database using perl How to create a flat file database as shown below s.no name age city phone 0 hema 22 Calcutta 4312542 1 hema 21 Bangalore 2344345 2 ganesh 25 delhi 2445454 3 kartik 45 pune 4312121 4 santosh 25 Hyderabad 2254231 5 kumar 25 mysore…

    Read More Create a flat file database using perlContinue

  • Perl

    Find whether a given line of text is starting and

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Find whether a given line of text is starting and Write a perl script to find whether a given line of text is starting and ending with same word or not ???

    Read More Find whether a given line of text is starting andContinue

  • Perl

    Use Vs require in perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: use Vs require in perl Hi, Whats difference between “use” and “require” in perl? rajeshkumar replied the topic: Re: use Vs require in perl use is done at ‘compile-time’ and require is done at ‘run-time’ (ie can conditionally load modules) Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn rajeshkumar replied the topic:…

    Read More Use Vs require in perlContinue

  • Perl

    Spit out warnings on uninitialized variables Perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Spit out warnings on uninitialized variables Perl How to Spit out warnings on uninitialized variables in Perl? rajeshkumar replied the topic: Re: Spit out warnings on uninitialized variables Perl #!/usr/local/bin/perl -w This will help you (really, it will force you) to write better, cleaner code. Adding the -w switch to the…

    Read More Spit out warnings on uninitialized variables PerlContinue

  • Perl

    Installing Perl modules

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Installing Perl modules Perl modules may be installed using the CPAN module or from source. CPAN method perl -MCPAN -e shell (to get an interactive CPAN shell) perl -MCPAN -e ‘install Time::JulianDay’ (if you know the name of the module, you can install it directly without interacting with the CPAN shell)…

    Read More Installing Perl modulesContinue

Page navigation

Previous PagePrevious 1 … 348 349 350 351 352 … 388 Next PageNext

© 2026 - WordPress Theme by Kadence WP

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
Search