دوست عزيز همين کدي که دادند درسته فقط توي خط آخر بجاي Application.StartupPath & "\esmebarname.exe" اين عبارت رو بذار Application.ExecutablePath