Quantcast
Channel: Benohead » Batch
Browsing latest articles
Browse All 3 View Live

Batch: convert to uppercase

The following batch file can be used to convert a string to uppercase: uppercase.bat: @ECHO OFF SET STRING=%1 IF [%STRING%]==[] GOTO:EOF SET STRING=%STRING:a=A% SET STRING=%STRING:b=B% SET...

View Article



Batch: Get parameters from command line or user input

When you write a batch file where you either want the caller to provide a parameter or ask the user to type it in if not provided, you can use the following piece of code: set MyParameter=%1if...

View Article

oracle: daily backup on windows

Here’s a small batch file I’ve written to make a daily backup of our Oracle database. @echo off if “%DUMP_PATH%”==”" set DUMP_PATH=d:tempif “%DUMP_BASE_NAME%”==”" set DUMP_BASE_NAME=dumpif...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images