Batch-Script – Iterate through arguments

@echo off setlocal enabledelayedexpansion set argCount=0 for %%x in (%*) do ( set /A argCount+=1 set “argVec[!argCount!]=%%~x” ) echo Number of processed arguments: %argCount% for /L %%i in (1,1,%argCount%) do echo %%i- “!argVec[%%i]!” For example: C:> test One “This is | the & second one” Third Number of processed arguments: 3 1- “One” 2- “This … Read more

Script runtime execution time limit

One thing you could do (this of course depends on what you are trying to accomplish) is: Store the necessary information (i.e. like a loop counter) in a spreadsheet or another permanent store(i.e. ScriptProperties). Have your script terminate every five minutes or so. Set up a time driven trigger to run the script every five … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)