Question Locked

Batch File Basics

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

4 replies

by cmiller5400

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.

This discussion is closed to new replies.