DigDeep

Saving a running code to different directory

4 posts in this topic

Not sure if this is actually possible or not.

I am running the code TEST.EXE from a location. After the actions, changing the text of the button "TEST" to "DONE". Until here all looks fine and I am able to see the button with the new TEXT applying the GUISETState to verify. But I want to have the code with these changes to be saved to a different directory $Dest.

And here is the issue. If I am copying the file from Source to new Destination... the new file does not show the changes made.

It looks like the changes made are within the code itself but does not apply to the actions.

Is there any way, I can save the file with the new changes to a different directory?

 

Please Help...

$Src = @WorkingDir & '\Test.exe' ; Getting Script running location
    $Dest = @DocumentsCommonDir & '\Test Folder'
    DirCreate($Dest)

    $Button = GUICtrlCreateButton("Test", 40, 64, 187, 33)

    GUICtrlSetData($Button, "Done") ; Changing Text of the GUI Button
    Sleep(1000)

FileCopy($Src, $Dest, 1) ; Copy Source file with the new changes to Destination Directory

 

Share this post


Link to post
Share on other sites



The reason I am changing TEXT in the GUI Button and trying to save the code to a different location with the new changes made so that I can launch the code later from the new location and it should run showing the Button Text with the changes made.

Hope I am not confusing here.

Not sure of the INI part. I'll check that once...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now