Question

Locked

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
echo

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

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

How about

by cmiller5400 In reply to Batch File Basics

reg add instead of reg ad

Collapse -

Oooooo!

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.

Back to Software Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums