Design Issues:
I have an application , say, GMS. It is a VC++ application written in MFC.
Requirement:
************
At one point, GMS.exe(Win32 application) has to start a another external
application,say,GMS_upgrade.exe(Win32 application).
The GMS_Upgrade.exe copies files and folders hierarchy for the GMSinstalled.
so, this will copy the GMS.exe also.
The design is ,
a)GMS.exe starts the GMS_Upgrade.exe,
b)GMS_Upgrade.exe waits until GMS.exe goes off and then it starts the
copying via copy.vbs(a separate VBScript invoked from
insdie GMS_Upgrade.exe)
I achieved the above said things.
After the GMS_Upgrade.exe is started , it has to copy the files and folder
hierarchy to the GMS installed path.
The copying process is written in VBScript. I start the VBScript inside the
GMS_Upgrade via the C-runtime call,
system("D:\\copy.vbs")
My Doubts:
************
I have the following questions related to design,
1) Can the GMs_Upgrade.exe be an Win32 Console application ? It is started
by GMS but just waits until GMS goes off.
2) The copying process is done in VBScript. Copying the files and folders is
done via VBScript.
Which is better approach, either copying the files and folders via VBScript
or copying files and folders done via C++ ?? or
bothe approach are the same.
3) If Copying the files and folders via VBScript is OK, pls. suggest How to
invoke the VBScript from inside C++ application.
I invoked via the call system("D:\\copy.vbs");
Does the above call will work in the platforms like, Windows XP, Windows Vista
My another here is that , do I need to specify the "WSCript" is the host for
the VBScript or it is considered by default in
all the above said platforms.
Thanks,
Sudhakar