Cynosure.X International

Contains Regular Expressions (GPL)
Tue, 18 Nov 2014 18:32:30 +0000

ContainsRegEx.cmd is a Windows batch program that can help determine if a specified string contains a specified regular expression. ContainsRegEx.cmd outputs 1 (for true) when the substring is a part of the string. Otherwise, it outputs 0 (for false).

ContainsRegEx.cmd takes advantage of the SetNumberOfArguments.bat (GPL) script that is also available on this web site. So to use ContainsRegEx.cmd, you'll have to download SetNumberOfArguments.bat, if you don't already have it.

ContainsRegEx.cmd is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.

Usage

  "ContainsRegEx.cmd" "string" "regular expression"

Examples

  C:\>ContainsRegEx.cmd "hello" "el*"
1

C:\>ContainsRegEx.cmd "hello" "e*"
1

C:\>ContainsRegEx.cmd "hello" "world"
0

C:\>ContainsRegEx.cmd "hello" "ell"
1


Category:

Comments | Related Links | TrackBack


Contains Substring (GPL)
Tue, 18 Nov 2014 18:23:37 +0000

ContainsSubString.cmd is a Windows batch program that can help determine if a specified string contains a specified substring. ContainsSubString.cmd outputs 1 (for true) when the substring is a part of the string. Otherwise, it outputs 0 (for false).

ContainsSubString.cmd takes advantage of the SetNumberOfArguments.bat (GPL) script that is also available on this web site. So to use ContainsSubString.cmd, you'll have to download SetNumberOfArguments.bat, if you don't already have it.

ContainsSubString.cmd is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.

Usage

"ContainsSubString.cmd" "string" "substring"

Examples

  C:\>ContainsSubString.cmd "hello" "ell"
1

C:\>ContainsSubString.cmd "hello" "world"
0


Category:

Comments | Related Links | TrackBack


Running Batch File as Administrator vs. Running as User
Wed, 12 Nov 2014 05:13:45 +0000

Much like executables, Windows can run batch scripts as either administrator or regular user. Running batch file as user is easy, all it takes is to double-click the batch file. To run the batch script as administrator, right-click on the batch file and click on the "Run as administrator" menu option.

But Windows behaves differently when the batch script is running one way vs. another way. In this thread, we point out the subtle differences.

Current Working Directory: When you run the batch file as a user, the working directory is where the batch file resides. But when you run the batch file as administrator, the current working directory is "%SystemDrive%\WINDOWS\system32".

Because of this difference, when programming batch scripts, try not to rely on the current directory as the script location. Instead, determine the script location using batch variables. For example:

  set scriptDir=%~d0%~p0
set scriptName=%~n0%~x0


Category:

Comments | Related Links | TrackBack


Gutenberg eReader - "Access Forbidden"
Thu, 04 Sep 2014 20:21:28 +0000

Hi Joseph,
thanks for your prompt reply.

before sending the above original post, I have uninstalled and re-installed the Gutenberg eReader, restarted the phone,cleaned all the leftover files, but it did not solve the problem at the time. Upon receiving your email the first thing I did was to clear the data and cache. And it worked! I can now use the Gutenberg eReader without problems.

The Gutenberg eReader version I had installed is version 5.4 and android version 4.4.2.

Thank you again for your help.

Best regards,


Category: :

Comments (2) | Related Links | TrackBack


Virtual Card Table
Wed, 03 Sep 2014 00:58:20 +0000

It's online: http://www.cynosurex.com/Software/UniversalCardGame/


Category:

Comments (1) | Related Links | TrackBack


More . . .

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

Hacking Digital Cameras
Fun for Photographers


Amazon Associate

Copyright © 1996 - 2014. All Rights Reserved.