Show the Parent Folder and Subfolders with FOLDERCONTENT

Button to Show the Parent Folder and Subfolders with FOLDERCONTENT

By default, FOLDERCONTENT lists all subfolders of a parent folder but not the parent folder itself.

A single click on the button below will list the parent folder and its contents.

This button code puts the parent folder at the top of the FOLDERCONTENT list.

Copy the text below and paste it into a toolbar while in Customize mode.

<?xml version="1.0"?>
<button backcol="none" display="label" icon_size="large" label_pos="right" textcol="none" type="menu">
	<label>F:\</label>
	<tip>F:\</tip>
	<icon1>#foldertree</icon1>
	<button backcol="none" display="label" icon_size="large" textcol="none">
		<label>F:\</label>
		<tip>F:\</tip>
		<icon1>#foldertree</icon1>
		<function type="normal">
			<instruction>Go F:\ NEWTAB</instruction>
		</function>
	</button>
	<button backcol="none" display="label" icon_size="large" textcol="none">
		<label>F:\</label>
		<tip>F:\</tip>
		<icon1>#foldertree</icon1>
		<function type="normal">
			<instruction>Go F:\ FOLDERCONTENT=dblclickmenu,nofiles NEWTAB</instruction>
		</function>
	</button>
</button>
2 Likes