i have this executable file for example i named it eyestrain.exe
This exe will not run without my eyestrain.ini
if i run this file using the codes
Process.Start("location of my files") or even the shell(file path)
my exe file just open half second and will close again,
i know there is an issue with the ini file but i dont know how to make it run
properly...
anyone can give me an idea how can i do it?
TIA
8 Replies - 1142 Views - Last Post: 12 June 2012 - 11:14 AM
#1
How to Run An Exe File Which is dependent on its own INI FILE?
Posted 23 May 2012 - 04:28 AM
Replies To: How to Run An Exe File Which is dependent on its own INI FILE?
#2
Re: How to Run An Exe File Which is dependent on its own INI FILE?
Posted 23 May 2012 - 05:03 AM
Why don't you Settings instead? as Setting are part of the Exe.
#3
Re: How to Run An Exe File Which is dependent on its own INI FILE?
Posted 23 May 2012 - 05:16 AM
@Adam,
sir I already try to put it as a resourcefile and i call it the way i call my exe on the resources
but the problem is still the same,
when i call the exe it will just run half seconds and will off,
so what i try is i put this exe on C:\my.exe and my.ini
and i try to call it as a usuall calling using shell or process start but still the same
thats why i think there is an issue with the ini,
sir can you explain more about this setting?
sir I already try to put it as a resourcefile and i call it the way i call my exe on the resources
but the problem is still the same,
when i call the exe it will just run half seconds and will off,
so what i try is i put this exe on C:\my.exe and my.ini
and i try to call it as a usuall calling using shell or process start but still the same
thats why i think there is an issue with the ini,
sir can you explain more about this setting?
Quote
as Setting are part of the Exe.
#4
Re: How to Run An Exe File Which is dependent on its own INI FILE?
Posted 23 May 2012 - 05:28 AM
Let me just point you in the direction of the Using Settings Tutorial
#5
Re: How to Run An Exe File Which is dependent on its own INI FILE?
Posted 23 May 2012 - 06:08 AM
hi, sir
sorry for being noob but i tried to read it carefully still i cannot see how can i apply that on my problm, sorry for that,
anyway thank you so much for the help,
with your post
i now do understand the importance of settings and that is additional info on my part thank you for that,
ill just try to re-write my code maybe i can figure it out
sorry for being noob but i tried to read it carefully still i cannot see how can i apply that on my problm, sorry for that,
anyway thank you so much for the help,
with your post
i now do understand the importance of settings and that is additional info on my part thank you for that,
ill just try to re-write my code maybe i can figure it out
#7
Re: How to Run An Exe File Which is dependent on its own INI FILE?
Posted 26 May 2012 - 02:07 AM
your link is incorrect sir, please check it
anyway i wonder why this code is working perfectly
but if im gonna put to other directory the exe will just pop up in second and close again
anyway i wonder why this code is working perfectly
Process.Start(My.Computer.FileSystem.CurrentDirectory & "\eyestrain.exe")
but if im gonna put to other directory the exe will just pop up in second and close again
#8
Re: How to Run An Exe File Which is dependent on its own INI FILE?
Posted 01 June 2012 - 06:53 PM
what do you want to get with that?
you can simple check if the file .ini not exist, close the program
if exist, then run that program
you can simple check if the file .ini not exist, close the program
if exist, then run that program
#9
Re: How to Run An Exe File Which is dependent on its own INI FILE?
Posted 12 June 2012 - 11:14 AM
eyestrain, on 26 May 2012 - 02:07 AM, said:
your link is incorrect sir, please check it
anyway i wonder why this code is working perfectly
but if im gonna put to other directory the exe will just pop up in second and close again
anyway i wonder why this code is working perfectly
Process.Start(My.Computer.FileSystem.CurrentDirectory & "\eyestrain.exe")
but if im gonna put to other directory the exe will just pop up in second and close again
Link is ok, but anyway... if you still have the problem, this may help:
Dim curFile As String = "c:\temp\test.txt" Console.WriteLine(If(File.Exists(curFile), "File exists.", "File does not exist."))
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|