Search found 4 matches

by logistician
17 Jan 2023 22:15
Forum: DOS Batch Forum
Topic: GetRegValue Default Field
Replies: 2
Views: 9722

Re: GetRegValue Default Field

Compo wrote:
17 Jan 2023 18:35
Did you try using just "" as your second argument?
You are a smart one, Compo...that did it, thanks.
by logistician
17 Jan 2023 15:47
Forum: DOS Batch Forum
Topic: GetRegValue Default Field
Replies: 2
Views: 9722

GetRegValue Default Field

Hi,

I was trying to use the GetRegValue function to retrieve the (Default) value for a key, but no matter what I try, I don't seem to be getting it. Does anybody know what the right syntax would be to achieve that result? Thank you.

https://www.dostips.com/?t=Function.GetRegValue
by logistician
02 Mar 2020 09:22
Forum: DOS Batch Forum
Topic: If Statement for Text Not Working
Replies: 2
Views: 5131

If Statement for Text Not Working

Hello, I'm trying to perform certain actions based upon the last character of a string. In my example below, the first if statement is never entered and I'm at a loss as to why. The code for getting the last character of a string I took from this website. Anybody have any thoughts? @echo off set LOC...