WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> Please Help!
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1105483172

Message started by ncmurf00 on Jan 11th, 2005 at 11:39pm

Title: Please Help!
Post by ncmurf00 on Jan 11th, 2005 at 11:39pm
I'm about at my wits end, through only my doing.
I'm trying to make a simple evaluation, but I have tried almost every variation and cruised the forum.
I am now humble and ask you to help.
I have the "net send" statement in there to verify my %FIRST5% is picking up the correct data, which it is.
I have no clue why it won't go to the DoIt portion.

SET FIRST5=%WD_FILE_B:~0,5%

net send is_jmurphy %FIRST5%
IF /i "%FIRST5%" EQU "bdtoa" GOTO :DoIt
IF /i "%FIRST5%" EQU "sfsad" GOTO :DoIt
GOTO :EOF

:DoIt


Any help is greatly appreciated.

[edited to remove the smiley-labels]

Title: Re: Please Help!
Post by Gert on Jan 12th, 2005 at 5:41am
Hi,

What you do, seems to be OK.
Can you open a command prompt and enter the following commands:

Code (]
SET TEST=1234567
SET SUB=%TEST:~0,5%
ECHO %SUB%
[/code):



That should display 12345 on your console. If the above doesn't work, my guess is that command extensions are not enabled on your computer.

Can you enter this command:
[code]echo %CMDEXTVERSION%

That should display 2 (or 1). If it just displays %CMDEXTVERSION%, then extensions are not enabled.
See, for example, here http://www.google.com/url?sa=U&start=1&q=http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/RegistryTips/Disable-Hide/EnableDisableCommandpromptextensions.html&e=7370
how to enable them.

Hope this helps,
Gert

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.