Running .exe file after boot

Hello guys..
I have a code i wrote in monodevelop and i have the program .exe file that i want to run after the desktop is loaded.
When i go into the terminal and change the dir to the debug folder and run ./thefile.exe it works.

I tried to add this command to a shell script that i run at boot as
./<full path>thefile.exe
And also cd <full path> and then ./thefile.exe but none has worked.

Can anyone please help me to figure out how to run my .exe file automatically after boot (prefer as root if possible)

Cheers!
Dror.

Hello guys..
I have a code i wrote in monodevelop and i have the program .exe file that i want to run after the desktop is loaded.
When i go into the terminal and change the dir to the debug folder and run ./thefile.exe it works.

I tried to add this command to a shell script that i run at boot as
./<full path>thefile.exe
And also cd <full path> and then ./thefile.exe but none has worked.

Can anyone please help me to figure out how to run my .exe file automatically after boot (prefer as root if possible)

Which desktop?

For example with openbox, there's an autostart script available at:
/home/debian/.config/openbox/autostart

mkdir -p /home/debian/.config/openbox/
echo "feh --bg-scale /opt/scripts/images/beaglebg.jpg" >
/home/debian/.config/openbox/autostart
echo "/home/debian/LeptonModule/software/beagleboneblack_video/bbb &"

/home/debian/.config/openbox/autostart

Regards,

.exe files are for windows

./someexecutable
This means run "someexecutable" in the in the current directory
because ./ is the current directory.
In startup scripts give the full path! without leading point!
e.g.
/home/you/somepath/someexecutable
AND as evilwulfie pinted out, never ever call a unix executable *.exe.
This is evil;)

Depending on how things are set up, you may need to run not “my_xxx.exe”, but “mono my_xxx.exe”.

idk about the whole *.exe thing.

I’ve found programming ANSI C that its nice to be able to port my MinGW code directly to GCC without changing my build shell scripts (blushes well my make files I mean). Hense a lot of my bins on my UN*X have the exe extension.

Seems to work…alignment aside.