Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Intel was not expected at this time

cmd unexpected

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 Elidor

Elidor

    CC Newcomer

  • Member
  • PipPip
  • 24 posts

Posted 19 March 2013 - 03:53 PM

So i'm just a beginner at batch scripting but I'm completely confused on this batch lesson. I'm learning from the book Windows 7 and Vista Guide to Scripting, Automation, and Command Line Tools. Here is the example script they provide in the book:

@rem                                               Example file which.bat
   @echo off

   if "%1" == "" (
       echo Usage: which command
       echo Locates the file run when you type 'command'.
       exit /b
   )

   for %%d in (. %path%) do (
       if "%~x1" == "" (
           rem the user didn't type an extension so use the PATHEXT list
           for %%e in (%pathext%) do (
               if exist %%d\%1%%e (
                   echo %%d\%1%%e
                   exit /b
               )
           )
       ) else (
           rem the user typed a specific extension, so look only for that
           if exist %%d\%1 (
               echo %%d\%1
               exit /b
           )
       )
   )
   echo No file for %1 was found

 

What I don't get is why I'm getting the error \Intel\OpenCL was unexpected at this time when on another desktop the path is revealed without any problems. Also I got to this error after uninstalling  HeciServer from Intel which gave the error \Intel\iCLS was unexpected at this time.

Any help would be greatly appreciated.



#2 Elidor

Elidor

    CC Newcomer

  • Member
  • PipPip
  • 24 posts

Posted 19 March 2013 - 08:58 PM

I don't know if it would help but I have spaces in my path. Unfortunately i'm can't just add quotation marks to just solve the problem. I found something about using usebackq but unfortunately nothing I put in is giving results.



#3 Elidor

Elidor

    CC Newcomer

  • Member
  • PipPip
  • 24 posts

Posted 19 March 2013 - 10:10 PM

So I think the root of the problem appears here in a smaller scale example of this:

 

for %%e in (%path%) do echo %%e

 

I don't see how I can escape the spaces in the path so it doesn't shutdown.


Edited by Elidor, 19 March 2013 - 10:12 PM.





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download