seadoggie01 Posted September 17, 2019 Posted September 17, 2019 (edited) I'm trying to implement a versioning program each time I compile a script. I hoped it would work with this in the AutoIt3Wrapper.ini [Other] Run_After="U:\Documents\AutoIt Files\CustomVersioning\Version.exe" "%in%" %fileversion% However, after compiling, it gives me this message... >Running:"U:\Documents\AutoIt Files\CustomVersioning\Version.exe" "U:\Documents\AutoIt Files\CustomVersioning\Version.au3" 0.0.0.19 'U:\Documents\AutoIt' is not recognized as an internal or external command, operable program or batch file. >"U:\Documents\AutoIt Files\CustomVersioning\Version.exe" "U:\Documents\AutoIt Files\CustomVersioning\Version.au3" 0.0.0.19 Ended rc:1 I've tried messing with the quotes, and it will run if I remove the quotes from %in%, but that causes it to pass three command line parameters to my program. Is there a way to fix this spaced directory issue? Edit: The strange thing is that it runs if I copy the text after 'Running: ' into a command prompt, which means that the wrapper must be changing something Edited September 17, 2019 by seadoggie01 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
seadoggie01 Posted September 17, 2019 Author Posted September 17, 2019 Well, I found it. For anyone who finds this later, I needed an extra set of quotes around the entire line like this: Run_After="""U:\Documents\AutoIt Files\CustomVersioning\Version.exe" "%in%" %fileversion%"" All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
Subz Posted September 17, 2019 Posted September 17, 2019 Have you tried single quotes? Run_After = '"U:\Documents\AutoIt Files\CustomVersioning\Version.exe" "%in%" %fileversion%'
seadoggie01 Posted September 17, 2019 Author Posted September 17, 2019 Interestingly, it results in the same error with the same output. All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
BrewManNH Posted September 17, 2019 Posted September 17, 2019 You could use one or more of the directives below to do the same thing. #AutoIt3Wrapper_Res_Fileversion= ;File Version #AutoIt3Wrapper_Res_FileVersion_AutoIncrement= ;(Y/N/P) AutoIncrement FileVersion. Default=N #AutoIt3Wrapper_Res_Fileversion_First_Increment=;(Y/N) AutoIncrement Y=Before; N=After compile. Default=N If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
seadoggie01 Posted September 17, 2019 Author Posted September 17, 2019 (edited) @BrewManNH Uh... not at all. That doesn't run the program... I'm try to backup a directory after each compile. I already have those options set. Edit: I see, I wasn't clear in my first post, sorry. Edited September 17, 2019 by seadoggie01 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
BrewManNH Posted September 17, 2019 Posted September 17, 2019 1 minute ago, seadoggie01 said: That doesn't run the program... I'm try to backup a directory after each compile. What does the program Version.exe actually do? If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
seadoggie01 Posted September 17, 2019 Author Posted September 17, 2019 (edited) It loops through each file in the program's directory, and copies them to .\Backup\%version% I was thinking of adding more, but that's all for now Edit: It's another AutoIt file if that wasn't clear Edited September 17, 2019 by seadoggie01 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now