View Full Version : problem with single executable
Martin_SBT
04-27-2004, 12:19 PM
Ik, anyone can give show me code that would fix the following problem?:
My AMS pro is a single exe.
Sometimes (not on all PC's) the following lines doesnt seem to work:
File.Copy("Bin\\CIA32.exe", InsightPath.."Database", true, true, false, true, nil);
File.Run("Bin\\acclist.BAT", insightsystem, "Bin", SW_MINIMIZE, true);
File.Run("Bin\\CIA.BAT", "", "Bin", SW_MINIMIZE, true);
Anyone can help? Please?
thanks
kpsmith
04-27-2004, 01:58 PM
Without a lot more detail...this is a total guess.....
Use the Sourcefolder variable just to make sure it is looking in the right place for the files.
File.Copy(_SourceFolder.."Bin\\CIA32.exe", InsightPath.."Database", true, true, false, true, nil);
Martin_SBT
04-27-2004, 02:46 PM
Sorry,
yeah, i wasnt getting any error messages but the files were not copied at all.
My file.copy action doesnt seem to work at all. i actually tried what you said and it still doesnt work!
the code is:
File.Copy(_SourceFolder.."Bin\\CIA350.exe", InsightPath.."Database", true, true, false, true, nil);
Stefan_M
04-27-2004, 02:59 PM
try
result = Dialog.Message("Notice", _SourceFolder.."\\Bin\\CIA350.exe".." : "..InsightPath.."\\Database", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
File.Copy(_SourceFolder.."\\Bin\\CIA350.exe", InsightPath.."\\Database", true, true, false, true, nil);
Stefan
Corey
04-27-2004, 03:08 PM
Yep Stefan's right:
_SourceFolder.."Bin\\CIA350.exe"
should be
_SourceFolder.."\\Bin\\CIA350.exe"
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
Martin_SBT
04-27-2004, 03:11 PM
AAAAAAAAAAAAARG
thanks guys!
now i got a question. Why before adding the "_SourceFolder" part, it was working on some PC's an not on others. Anyone can put some lights on it for me please?
thanks
Note: the forums new look is very kool
Corey
04-27-2004, 03:29 PM
Well it depends on where your app is relative to your folders. i.e. you can use
"\\AutoPlay"
or
_SourceFolder.."\\AutoPlay"
and depending on your project, they'll probably lead to the same place... Glad you like the forums, we also like it, it's been much better since we upgraded! :cool
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.