Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

'C:\program' is not recognized


  • Please log in to reply
16 replies to this topic

#1 DavB

DavB

    Seeker

  • New Members
  • 3 posts

Posted 07 January 2012 - 04:45 PM

Hi there,

I just downloaded and installed AutoIt (X86 Version) on my windows 7 system, opened a good script developed on my XP system, did >tools>go and received the following error:

>C:\program files\autoit3\autoit3.exe "C:\Users\Dave\Desktop\Login.au3"
'C:\program' is not recognized as an internal or external command,
operable program or batch file.
>Exit code: 1 Time: 0.667

I searched the forum archive and got a hit on this error (for SciTE3), which said something about putting double quotes around #AutoIt3Wrapper_Run_Before= " " (search on #AutoIt3Wrapper_Run_Before Problems?!? in general help if you want to see it)

Does this still apply to SciTE4? Would it fix my problem? And, if so, would someone be kind enough to step by step me through this?

Thanks,
Dave







#2 AdmiralAlkex

AdmiralAlkex

    Here be dragons

  • Active Members
  • PipPipPipPipPipPip
  • 4,607 posts

Posted 07 January 2012 - 04:49 PM

Hi and Welcome to the forums!!

You should install SciTE4AutoIt3, it doesn't have this problem. Also, it's a superior editor. Brings lots of tools and goodies.

#3 DavB

DavB

    Seeker

  • New Members
  • 3 posts

Posted 07 January 2012 - 04:53 PM

I did have SciTE4 installed. I suppose I could re-install it, but I think you assumed I had SciTE3 installed (my reference to SciTE3 was to indicate that the 2007 post I refered to was regarding SciTE3).

Thanks,
Dave

#4 Jos

Jos

    oh joy ...

  • Developers
  • 22,530 posts

Posted 07 January 2012 - 05:00 PM

Just reinstall the latest SciTE4AutoIt3 installer to fix this issue.

Jos

Visit the SciTE4AutoIt3 Download page for the latest versions                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#5 DavB

DavB

    Seeker

  • New Members
  • 3 posts

Posted 07 January 2012 - 05:08 PM

Upon further investigation I see I had the Lite version installed. I updated to the version found here http://www.autoitscript.com/site/autoit-script-editor/downloads/ and it works!

Thanks so much!

Dave

#6 burnell

burnell

    Wayfarer

  • Active Members
  • Pip
  • 55 posts

Posted 07 January 2012 - 05:08 PM

http://www.autoitscript.com/forum/topic/135931-solved-autoit-update-problem/

Extras - SciTe-Config - Generell Settings - AutoIt3 Directory settings:
change the path there.

Edith said: just seconds to late ...

Edited by burnell, 07 January 2012 - 05:10 PM.


#7 Jos

Jos

    oh joy ...

  • Developers
  • 22,530 posts

Posted 07 January 2012 - 05:17 PM

http://www.autoitscript.com/forum/topic/135931-solved-autoit-update-problem/

Extras - SciTe-Config - Generell Settings - AutoIt3 Directory settings:
change the path there.

Edith said: just seconds to late ...

That PAth setting is for extra personal include directories. :)
It wouldn't have worked as I knew the OP was running the SciTE-Lite that comes with the current AutoIt3 installer. I have changed/fixedd that for the next release.

Jos

Visit the SciTE4AutoIt3 Download page for the latest versions                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#8 jer

jer

    Seeker

  • Active Members
  • 16 posts

Posted 22 January 2012 - 12:47 AM

Just reinstall the latest SciTE4AutoIt3 installer to fix this issue.

Jos


Jos, Autoit v3061 and sciTE-lite compiled fine if Autoit was inistalled on a drive other then C (e.g. D:program filesautoit3). However, Autoit v3080 and sciTE-lite generate an error because I believe that sciTE is looking for aut2exe.exe on the C drive. However, it is actually on the D drive (D:program filesautoit3aut2exeaut2exe.exe). I ran SciteConfig.exe and it shows the correct path on the D: drive for aut2exe.exe. Is there another place I should be looking for the C:program files reference? Error below.


>C:program filesautoit3aut2exeaut2exe.exe /in "G:AU3Testtest92.au3"
'C:program' is not recognized as an internal or external command,
operable program or batch file.
>Exit code: 1 Time: 0.564

#9 guinness

guinness

    I've a handle on the fiction

  • Developers
  • 15,648 posts

Posted 22 January 2012 - 12:56 AM

Jos is aware, he also provided a solution >> http://www.autoitscript.com/forum/topic/136345-cprogram-is-not-recognized/page__view__findpost__p__952709

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasswordValidPasteBinPosts Per DayPreExpandQueue()SciTE JumpSHELLHOOKShunting-YardSignature CreatorStack()StringAddLF()/StringStripLF()StringEOLToCRLF()WM_COPYDATAMore Examples...
Updated: 12/04/2014


#10 AdmiralAlkex

AdmiralAlkex

    Here be dragons

  • Active Members
  • PipPipPipPipPipPip
  • 4,607 posts

Posted 22 January 2012 - 12:59 AM

Is there another place I should be looking for the C:program files reference? Error below.

No there isn't. As has been written many times over the last few weeks (including this and the other thread you was linked to) you need to install SciTE4AutoIt3 as that doesn't have this problem.

The lite version has been fixed but there's no knowing when the next version of AutoIt is released. Besides, you would want SciTE4AutoIt3 in any case, the improvements are massive. Just try it, you will never use the lite version again.

#11 Jos

Jos

    oh joy ...

  • Developers
  • 22,530 posts

Posted 22 January 2012 - 09:21 AM

I have made the new scite lite available when you prefer to just use that.
http://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/SciTE-Lite/SciTE.exe

Visit the SciTE4AutoIt3 Download page for the latest versions                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#12 jer

jer

    Seeker

  • Active Members
  • 16 posts

Posted 22 January 2012 - 03:11 PM

I have made the new scite lite available when you prefer to just use that.
http://www.autoitscript.com/autoit3/scit.../beta_SciTE4AutoIt3/SciTE-Lite


Thanks Jos. That worked.

#13 jer

jer

    Seeker

  • Active Members
  • 16 posts

Posted 22 January 2012 - 03:18 PM

No there isn't. As has been written many times over the last few weeks (including this and the other thread you was linked to) you need to install SciTE4AutoIt3 as that doesn't have this problem.

The lite version has been fixed but there's no knowing when the next version of AutoIt is released. Besides, you would want SciTE4AutoIt3 in any case, the improvements are massive. Just try it, you will never use the lite version again.


Thanks for the info. Jos's fix (http://www.autoitscript.com/autoit3/scit.../beta_SciTE4AutoIt3/SciTE-Lite) to the lite version corrected the issue and works as it did in previous versions. My issue with installing SciTE4AutoIt3 is that it forces sciTE to be installed in C:program files, which is not reasonable. All my application are installed in D:program files. Software should be smart enough to be able to handle different installation locations even if it means an extra config file.

#14 Jos

Jos

    oh joy ...

  • Developers
  • 22,530 posts

Posted 22 January 2012 - 03:55 PM

My issue with installing SciTE4AutoIt3 is that it forces sciTE to be installed in C:program files, which is not reasonable. All my application are installed in D:program files. Software should be smart enough to be able to handle different installation locations even if it means an extra config file.

Are you sure about that?
As far as I know I have the SciTE4AutoIT3 installer retrieve the AutoIt3 installdir from the Registry and make SciTE a subdir of the found directory.

Edited by Jos, 22 January 2012 - 03:55 PM.

Visit the SciTE4AutoIt3 Download page for the latest versions                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#15 jer

jer

    Seeker

  • Active Members
  • 16 posts

Posted 22 January 2012 - 06:03 PM

Are you sure about that?
As far as I know I have the SciTE4AutoIT3 installer retrieve the AutoIt3 installdir from the Registry and make SciTE a subdir of the found directory.


If the zip files are used to manually install (copy) AutoIT and SciTE, the registry will not be updated. If the registry is not updated, the SciTE installer will not even run.

#16 Jos

Jos

    oh joy ...

  • Developers
  • 22,530 posts

Posted 22 January 2012 - 06:07 PM

If the zip files are used to manually install (copy) AutoIT and SciTE, the registry will not be updated. If the registry is not updated, the SciTE installer will not even run.

When you use the ZIP file for AutoIt3 you should also use the ZIP file for ScITE4AutoIt3 and you are supposed to understand what you are doing. :)
When you use the latest ZIP version, my guess is it will work fine as long as you install it as a subdirectory called SciTE in the AutoIt3 program directory.

Edited by Jos, 22 January 2012 - 06:07 PM.

Visit the SciTE4AutoIt3 Download page for the latest versions                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#17 guinness

guinness

    I've a handle on the fiction

  • Developers
  • 15,648 posts

Posted 22 January 2012 - 06:26 PM

...you are supposed to understand what you are doing.

I quite agree. If you want to make it Portable then have a look at the AutoIt Portable thread.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasswordValidPasteBinPosts Per DayPreExpandQueue()SciTE JumpSHELLHOOKShunting-YardSignature CreatorStack()StringAddLF()/StringStripLF()StringEOLToCRLF()WM_COPYDATAMore Examples...
Updated: 12/04/2014





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users