Batch File Basics

By Zerk112 ·
I know it has to be something I am over looking and I need some more eyes on this because I just can't see the problem with it.

As far as I can tell this should be working:

@echo off
reg ad "hkcu\software\microsoft\windows\currentversion\explorer\user shell folders" /v "favorites" /t reg_expand_sz /d "i:\documents\favorites" /f

The forum will wrap the text but from "reg" to "/f" it's all one line.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

How about

by cmiller5400 In reply to Batch File Basics

reg add instead of reg ad

Collapse -


by neilb@uk In reply to How about

It's a "D'oh!" moment to savour.

Collapse -

It usually is...

by cmiller5400 In reply to Oooooo!

with a simple line of code, a simple error. I can't tell you how many times I've looked at a line of code and thought why the h3ll is it doing that??? Only to realize that I was assigning the value I was checking for into the variable. Damn == vs = :_|

edit: fix emoticon.

Related Discussions

Related Forums