PDA

View Full Version : Little help getting an .bat file running


Ham
03-21-2007, 03:57 PM
Hello all

I have several .bat files that needs to open.
Since i dont know where the user will installing an file.exe i take the register.get function to find the location. That looks like this:

on click
GetInstallpath = Registry.GetValue(HKEY_CURRENT_USER, "Software\\app", "InstallPath", false);

File.Copy("AutoPlay\\Docs\\update.bat", GetInstallpath, true, true, false, true, nil);

Now i need to run the update.bat file but i can't get it to work.

Any help will be appreciated:yes

bule
03-21-2007, 05:02 PM
File.Open(GetInstallpath.."\\update.bat");

Ham
03-21-2007, 06:14 PM
Many thanks bule that works:yes