<?xml version="1.0" encoding="windows-1252"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>VideoHelp Forum - Computer</title>
		<link>https://forum.videohelp.com/</link>
		<description>Talk about anything related to PC hardware or software here. </description>
		<language>en</language>
		<lastBuildDate>Sun, 19 Apr 2026 21:42:46 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://forum.videohelp.com/images/misc/rss.png</url>
			<title>VideoHelp Forum - Computer</title>
			<link>https://forum.videohelp.com/</link>
		</image>
		<item>
			<title><![CDATA[Wrong variable expansion with names having a comma but no space [Windows]]]></title>
			<link>https://forum.videohelp.com/threads/420286-Wrong-variable-expansion-with-names-having-a-comma-but-no-space-%5BWindows%5D?goto=newpost</link>
			<pubDate>Wed, 25 Mar 2026 18:24:04 GMT</pubDate>
			<description><![CDATA[I've made a few .bat scripts to rename or compress files dragged-and-dropped onto them. They work with most files which have no non-ASCII characters, but they fail in one particular case: files with a name that has a comma but no space. Apparently, because there's no space, the variable (or rather...]]></description>
			<content:encoded><![CDATA[<div>I've made a few .bat scripts to rename or compress files dragged-and-dropped onto them. They work with most files which have no non-ASCII characters, but they fail in one particular case: files with a name that has a comma but no space. Apparently, because there's no space, the variable (or rather the <a class="contentlink" href="https://ss64.com/nt/syntax-args.html" target="_blank" rel="nofollow">argument</a>) is expanded with no quotation marks, and then the comma is interpreted as a delimiter. Is there any workaround?<br />
<br />
Example:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">chcp 1252<br />
set filepath=%~1<br />
FOR /F &quot;delims=\&quot; %%L in (&quot;%filepath%&quot;) DO set letter=%%L<br />
FOR %%F in (&quot;%filepath%&quot;) DO (<br />
&nbsp; &nbsp; &nbsp; &nbsp; set drive=%%~dF<br />
&nbsp; &nbsp; &nbsp; &nbsp; set filename=%%~nxF<br />
)<br />
FOR /F &quot;tokens=1,2,3,4,5 delims=/: &quot; %%T in (&quot;%~t1&quot;) DO set filedate=%%V%%U%%T%%W%%X<br />
%drive%<br />
7z a -mx=7 -md=256m -mtc=on -mta=on &quot;%filename% [%filedate%].7z&quot; %1<br />
pause</code><hr />
</div> Tried this, same result:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">chcp 1252<br />
set filepath=&quot;%~1&quot;<br />
FOR %%F in (%filepath%) DO (<br />
&nbsp; &nbsp; &nbsp; &nbsp; set drive=%%~dF<br />
&nbsp; &nbsp; &nbsp; &nbsp; set filename=%%~nxF<br />
)<br />
FOR /F &quot;tokens=1,2,3,4,5 delims=/: &quot; %%T in (&quot;%~t1&quot;) DO set filedate=%%V%%U%%T%%W%%X<br />
%drive%<br />
7z a -mx=7 -md=256m -mtc=on -mta=on &quot;%filename% [%filedate%].7z&quot; %filepath%<br />
pause</code><hr />
</div> If I simply put:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">set filepath=&quot;%~1&quot;<br />
echo %filepath%<br />
pause</code><hr />
</div> with a test file named “12345,6789.txt&quot; on a volume with letter W: I get:<br />
&quot;W:\12345&quot;</div>

 ]]></content:encoded>
			<category domain="https://forum.videohelp.com/forums/37-Computer">Computer</category>
			<dc:creator>abolibibelot</dc:creator>
			<guid isPermaLink="true">https://forum.videohelp.com/threads/420286-Wrong-variable-expansion-with-names-having-a-comma-but-no-space-%5BWindows%5D</guid>
		</item>
		<item>
			<title>5 TB WD Easystore External Hard Drive cable trouble</title>
			<link>https://forum.videohelp.com/threads/420264-5-TB-WD-Easystore-External-Hard-Drive-cable-trouble?goto=newpost</link>
			<pubDate>Sat, 21 Mar 2026 16:43:53 GMT</pubDate>
			<description><![CDATA[This is the first WD drive I have bought in years and with the Seagate hard drives it has always been easy to plug this USB cable into the drive itself.  With this I can't get the cable to go in the slot.  I think I will beg Best Buy Canada to let me return it.]]></description>
			<content:encoded><![CDATA[<div>This is the first WD drive I have bought in years and with the Seagate hard drives it has always been easy to plug this USB cable into the drive itself.  With this I can't get the cable to go in the slot.  I think I will beg Best Buy Canada to let me return it.</div>

 ]]></content:encoded>
			<category domain="https://forum.videohelp.com/forums/37-Computer">Computer</category>
			<dc:creator>Tom Saurus</dc:creator>
			<guid isPermaLink="true">https://forum.videohelp.com/threads/420264-5-TB-WD-Easystore-External-Hard-Drive-cable-trouble</guid>
		</item>
	</channel>
</rss>
