<?xml version="1.0" encoding="iso-8859-1"?> 
<rdf:RDF
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:dc="http://purl.org/dc/elements/1.1/" 
	xmlns:dcterms="http://purl.org/dc/terms/" 
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:thr="http://purl.org/rss/1.0/modules/threading/"
	xmlns:pb="http://www.ideaspace.net/users/wkearney/schema/postback/" 
	xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" 
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:mt="http://movabletype.org/"
	xmlns:foaf="http://xmlns.com/foaf/0.1/" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:html="http://www.w3.org/TR/REC-html40/"
	xmlns="http://purl.org/rss/1.0/"
> 

<rdf:Description rdf:about="http://www.ideaspace.net/users/wkearney/archives/entries/000403.html"> 
	<title>Windows CMD autorun</title>
	<link>http://www.ideaspace.net/users/wkearney/archives/entries/000403.html</link>
	<description>Here&apos;s a useful hack. Edit the registry on your Windows 2000 (or XP) box so that it will automatically do...</description> 

	<dc:creator>wkearney</dc:creator> 
	<dc:date>2003-07-25T12:45:43-05:00</dc:date> 
	<dc:identifier>http://www.ideaspace.net/users/wkearney/archives/entries/000403.html</dc:identifier>
	<dc:language>en-us</dc:language>

	

	

	<slash:comments>1</slash:comments> 
	<thr:children>
		<rdf:Seq> 
			<rdf:li rdf:resource="http://www.ideaspace.net/users/wkearney/archives/entries/000403.html#c302" /> 
		</rdf:Seq>
	</thr:children>

	
	
	
	<dcterms:abstract>Here&apos;s a useful hack. Edit the registry on your Windows 2000 (or XP) box so that it will automatically do...</dcterms:abstract> 
	<dcterms:created>2003-07-25T12:45:43-05:00</dcterms:created> 
	<dcterms:isPartOf rdf:resource="http://www.ideaspace.net/users/wkearney/" /> 

	<mt:body><![CDATA[<p>Here's a useful hack.  Edit the registry on your Windows 2000 (or XP) box so that it will automatically do something when you open a command prompt.</p>

<p>Find the HKEY_CURRENT_USER\Software\Microsoft\Command Processor subtree.  Add a REG_SZ value to it.  Name that string <b>Autorun</b> and enter the value <b>CD \<em>somedirectory</em></b> but replace <em>somedirectory</em> with a path that's appropriate on your machine.  I've got a \temp directory so I use that path.  Also note you can have it perform multiple commands using a syntax like "D: & CD \temp" and that will change to the D: drive and then switch into the D:\temp directory.</p>

<p>Note that you can add this value in the [HKEY_USERS].Default or even the [HKEY_LOCAL_MACHINE] subtrees.   Add it to the .Default tree and any new <em>local</em> users to the box would get it added into their subtree.  For folks using Active Directory and profiles this probably wouldn't be very useful.  There are ways, using domain profiles, to accomplish this but they're a bit more involved.  Adding it to the Local Machine substree has the effect of forcing the setting for anyone using the box.  I'm not sure that's such a good idea.</p>

<p>This could be configured into a .reg file that users could simple double-click and get it automagically loaded into their subtree.  Since the directory pathname is unlikely to be the same on your machines as mine I'm not going to post one here.  Besides, this is one of those situations where knowing what you're doing IS IMPORTANT.</p>

<p>As always, no guarantees here folks, you get this wrong and there's no telling what damage you'd be causing to your machine.  Proceed with care.</p>]]></mt:body>
	<mt:excerpt>Here&apos;s a useful hack. Edit the registry on your Windows 2000 (or XP) box so that it will automatically do...</mt:excerpt> 
	<mt:more></mt:more>
	<mt:keywords></mt:keywords> 
	<mt:entryID>403</mt:entryID>

	<mt:entryPrev>401</mt:entryPrev>
	<mt:entryNext>404</mt:entryNext>

	<html:link rel="prev" type="application/xml" href="http://www.ideaspace.net/users/wkearney/archives/entries/000401.html.xml" title="What's in a nickname?" />
	<html:link rel="next" type="application/xml" href="http://www.ideaspace.net/users/wkearney/archives/entries/000404.html.xml" title="Some RDF examples" />
	
	<mt:author>wkearney</mt:author> 
	<mt:authorNickname>Bill Kearney</mt:authorNickname> 
	<mt:authorEmail>wkearney@ideaspace.net</mt:authorEmail>
	<mt:authorURL rdf:resource="http://www.ideaspace.net/users/wkearney" /> 
	
	<foaf:name>wkearney</foaf:name> 
	<foaf:mbox rdf:resource="mailto:wkearney@ideaspace.net" /> 
	<foaf:nick>Bill Kearney</foaf:nick> 
	<foaf:homepage rdf:resource="http://www.ideaspace.net/users/wkearney" />
	
	<rdfs:seeAlso rdf:resource="http://www.ideaspace.net/users/wkearney/xml/index.rdf" />
	<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=2.64" /> 
</rdf:Description>
</rdf:RDF>