SWAT-CUP: "SWAT is not recognized as an internal or external command, operable program or batch file.end_yr_of_sim=2009, variable 1, 2008 is a leap year

3,900 views
Skip to first unread message

nahal

unread,
Aug 6, 2018, 1:32:42 PM8/6/18
to SWAT-CUP
Hi SWAT-CUP users,

I need your help to figure out the SWAT-CUP message : 'SWAT is not recognized as an internal or external command, operable program or batch file.
                                                                  end_yr_of_sim=2009 
                                                                  variable 1 
                                                                   2008 is a leap year'

I'm running he SWAT-CUP from 2002-2009 with 4yrs warm-up period (4 yrs warm up and 4 yrs calibration). 
I checked the observed file. Everything is correct. I've attached the Eco folder and screen shots of file.co and SUFI2_extract_Rch.

Best, 

Nahal


SWAT_cup.png
Echo.zip
File.co.JPG
SUFI2_extract_rch.JPG

Karim Abbaspour

unread,
Aug 6, 2018, 1:50:54 PM8/6/18
to swat...@googlegroups.com
Copy your swat executable file from Arcswat folder into the swatcup project folder. Call it swat.exe.

Karim
--
You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<SWAT_cup.png>
<Echo.zip>
<File.co.JPG>
<SUFI2_extract_rch.JPG>

nahal hoghooghi

unread,
Aug 6, 2018, 2:11:32 PM8/6/18
to swat...@googlegroups.com
Thank you Karim. I'm still getting the message. Just to confirm it: I copied 'swat2012' from arcSWAT to SWAT_CUP project folder and rename it 'swat.exe', NOT SWAT-CUP program folder.

Thank you very much

Nahal 

On Mon, Aug 6, 2018 at 1:50 PM, Karim Abbaspour <abbasp...@gmail.com> wrote:
Copy your swat executable file from Arcswat folder into the swatcup project folder. Call it swat.exe.

Karim

On Aug 6, 2018, at 19:32, nahal <nahalho...@gmail.com> wrote:

Hi SWAT-CUP users,

I need your help to figure out the SWAT-CUP message : 'SWAT is not recognized as an internal or external command, operable program or batch file.
                                                                  end_yr_of_sim=2009 
                                                                  variable 1 
                                                                   2008 is a leap year'

I'm running he SWAT-CUP from 2002-2009 with 4yrs warm-up period (4 yrs warm up and 4 yrs calibration). 
I checked the observed file. Everything is correct. I've attached the Eco folder and screen shots of file.co and SUFI2_extract_Rch.

Best, 

Nahal


--
You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
<SWAT_cup.png>
<Echo.zip>
<File.co.JPG>
<SUFI2_extract_rch.JPG>

--
You received this message because you are subscribed to a topic in the Google Groups "SWAT-CUP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swat-cup/Ft9wrwpfd28/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swat-cup+unsubscribe@googlegroups.com.

nahal hoghooghi

unread,
Aug 6, 2018, 4:39:47 PM8/6/18
to swat...@googlegroups.com
Hi Karim,

I got it.

Thanks very much 

Nahal

On Mon, Aug 6, 2018 at 1:50 PM, Karim Abbaspour <abbasp...@gmail.com> wrote:
Copy your swat executable file from Arcswat folder into the swatcup project folder. Call it swat.exe.

Karim

On Aug 6, 2018, at 19:32, nahal <nahalho...@gmail.com> wrote:

Hi SWAT-CUP users,

I need your help to figure out the SWAT-CUP message : 'SWAT is not recognized as an internal or external command, operable program or batch file.
                                                                  end_yr_of_sim=2009 
                                                                  variable 1 
                                                                   2008 is a leap year'

I'm running he SWAT-CUP from 2002-2009 with 4yrs warm-up period (4 yrs warm up and 4 yrs calibration). 
I checked the observed file. Everything is correct. I've attached the Eco folder and screen shots of file.co and SUFI2_extract_Rch.

Best, 

Nahal


--
You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
<SWAT_cup.png>
<Echo.zip>
<File.co.JPG>
<SUFI2_extract_rch.JPG>

--
You received this message because you are subscribed to a topic in the Google Groups "SWAT-CUP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swat-cup/Ft9wrwpfd28/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swat-cup+unsubscribe@googlegroups.com.

Pravin Patil

unread,
Aug 16, 2018, 3:28:56 PM8/16/18
to SWAT-CUP
Hi Nahal,
How you solved this issue, please could you explain to me also, I am also came across to this error.


On Tuesday, August 7, 2018 at 2:09:47 AM UTC+5:30, nahal wrote:
Hi Karim,

I got it.

Thanks very much 

Nahal
On Mon, Aug 6, 2018 at 1:50 PM, Karim Abbaspour <abbasp...@gmail.com> wrote:
Copy your swat executable file from Arcswat folder into the swatcup project folder. Call it swat.exe.

Karim

On Aug 6, 2018, at 19:32, nahal <nahalho...@gmail.com> wrote:

Hi SWAT-CUP users,

I need your help to figure out the SWAT-CUP message : 'SWAT is not recognized as an internal or external command, operable program or batch file.
                                                                  end_yr_of_sim=2009 
                                                                  variable 1 
                                                                   2008 is a leap year'

I'm running he SWAT-CUP from 2002-2009 with 4yrs warm-up period (4 yrs warm up and 4 yrs calibration). 
I checked the observed file. Everything is correct. I've attached the Eco folder and screen shots of file.co and SUFI2_extract_Rch.

Best, 

Nahal


--
You received this message because you are subscribed to the Google Groups "SWAT-CUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-cup+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
<SWAT_cup.png>
<Echo.zip>
<File.co.JPG>
<SUFI2_extract_rch.JPG>

--
You received this message because you are subscribed to a topic in the Google Groups "SWAT-CUP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swat-cup/Ft9wrwpfd28/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swat-cup+u...@googlegroups.com.

nahal hoghooghi

unread,
Aug 16, 2018, 3:32:30 PM8/16/18
to swat...@googlegroups.com
As Karim mentioned " Copy your swat executable file from Arcswat folder into the swatcup project folder. Call it swat.exe".

But, it still shows me "2008 is a leap year".

Hope this helps.

Nahal

To unsubscribe from this group and all its topics, send an email to swat-cup+unsubscribe@googlegroups.com.

Pravin Patil

unread,
Aug 16, 2018, 3:34:23 PM8/16/18
to SWAT-CUP
Can you tell me which one is from attachment pic?, because tried with these, but still getting same error. 
To unsubscribe from this group and all its topics, send an email to swat-cup+u...@googlegroups.com.
swat_folder snap.PNG

nahal hoghooghi

unread,
Aug 16, 2018, 3:36:14 PM8/16/18
to swat...@googlegroups.com
swat2012. First enable "file extension" from the control panel. You can see the extensions *.exe. Then try to rename it to SWAT.exe

To unsubscribe from this group and all its topics, send an email to swat-cup+unsubscribe@googlegroups.com.

Pravin Patil

unread,
Aug 16, 2018, 3:52:52 PM8/16/18
to SWAT-CUP
Yes, I copied, shall I now paste in SWAT_CUP folder where located in C drive or which one we created SUFI2 folder?
To unsubscribe from this group and all its topics, send an email to swat-cup+u...@googlegroups.com.

nahal hoghooghi

unread,
Aug 16, 2018, 3:54:26 PM8/16/18
to swat...@googlegroups.com
In your project folder. 

Nahal

To unsubscribe from this group and all its topics, send an email to swat-cup+unsubscribe@googlegroups.com.

Pravin Patil

unread,
Aug 16, 2018, 4:31:29 PM8/16/18
to SWAT-CUP
Hi Nahal
Yes that one is workable now but, again there is one error still not resolved yet that, "number of years of simulations don't match. Check file.cio and extract.bat file"
I checked my language and time zone, date, also checked file.cio and .bat file but can't get the solution,
Do you have any solution over this?
To unsubscribe from this group and all its topics, send an email to swat-cup+u...@googlegroups.com.

Pravin Patil

unread,
Aug 17, 2018, 6:30:42 AM8/17/18
to SWAT-CUP
Dr. Karim
Please do have any suggestion on end year 2014 "number of years of simulations don't match. Check file.cio and extract.bat file"?
I checked my language and time zone, date, also checked file.cio and .bat file but can't get the solution.

Please need help

Arun Bawa

unread,
Sep 13, 2018, 5:11:41 PM9/13/18
to SWAT-CUP

I tried this one and still getting error. I copied swat2012.exe from arcSWAT folder and pasted it in project folder and renamed it swat.exe. 
This error is appearing even in the SUFI2_pre.bat and in your case it is in SUFI2_run.bat.
Is there any other way?
error.JPG
Message has been deleted

Arun Bawa

unread,
Sep 13, 2018, 5:19:21 PM9/13/18
to SWAT-CUP
Hello Dr Karim
I tried this one and still getting error. I copied swat2012.exe from arcSWAT folder and pasted it in project folder and renamed it swat.exe. 
This error is appearing even in the SUFI2_pre.bat and in Nahal's case it is in SUFI2_run.bat.
Is there any other way?

Thanks
Arun


Arun Bawa

unread,
Sep 13, 2018, 5:39:30 PM9/13/18
to SWAT-CUP
I resolved it. Swat cant recognize special symbols in directory name. There was '&' in dirctory name, i removed it and it worked.

Thanks
Arun 


Tanvir Tanvir dar

unread,
Sep 22, 2018, 1:30:33 PM9/22/18
to SWAT-CUP


I am facing the same error. I have paste the swat2012 file in my SWAT-CUP project and rename it as swat.exe. but still facing the error. please help


error.png

Shahid Baloch

unread,
Nov 4, 2018, 11:24:33 AM11/4/18
to SWAT-CUP
Hi Pravin, 

I am getting the error " number of years of simulations don't match. Check file.cio and extract.bat file". Can you guide me how did you solve it?


Regards
Shahid

u121...@up.ac.za

unread,
Nov 5, 2018, 6:15:15 AM11/5/18
to SWAT-CUP
Good day, 
I am experiencing the same problem.  Have you managed to fix it?

Karim Abbaspour

unread,
Nov 5, 2018, 6:31:04 AM11/5/18
to swat...@googlegroups.com
Copy the executable swat from your arcswat folder into your swatcup project. Call it swat.exe

Karim
This message and attachments are subject to a disclaimer.
Please refer to http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf 
for full details.

Priyanka Pandey

unread,
Nov 7, 2018, 4:44:48 AM11/7/18
to SWAT-CUP
have you fixed the error ? and if yes how did you do that?

Damtew Degefe

unread,
Aug 28, 2021, 5:36:17 AM8/28/21
to SWAT-CUP
Capture.PNG

2w2e

unread,
Aug 28, 2021, 6:24:21 AM8/28/21
to swat...@googlegroups.com
Hello,
Is the error message not understandable?

Best regards,
------------------------------
2W2E Consulting GmbH


David Mugenyi

unread,
Jun 10, 2022, 5:29:02 AM6/10/22
to SWAT-CUP
go to control pannel and activate file extensions 
then copy and paste in your project folder
David 

Reply all
Reply to author
Forward
0 new messages