floele Posted September 11, 2010 Report Share Posted September 11, 2010 Hi, a new minor release with a couple of additions: +Added variable {startuppath} +Show file properties (F9) +Added time and time-x/time+x variables for Unix timestamp (useful for SF.net downloads) !Fixed: Status column does not sort properly !Fixed a possible NullReferenceException Regards, Flo Link to comment Share on other sites More sharing options...
Tomorrow Posted September 11, 2010 Report Share Posted September 11, 2010 Installed.Looks good. Thank you. Link to comment Share on other sites More sharing options...
josh Posted September 11, 2010 Report Share Posted September 11, 2010 Thank you! Link to comment Share on other sites More sharing options...
shawn Posted September 12, 2010 Report Share Posted September 12, 2010 Hi, Flo! I still can't get {startuppath} to work within the global commands. Is there a trick to it? Trying to execute: echo {category} /// {appname} {version} >> "{startuppath}\Updates.txt" The output still uses the literal text "{startuppath}" though. This is what the above actually attempts to execute: Plugins /// Java x86 6u21 >> "{startuppath}\Updates.txt" Link to comment Share on other sites More sharing options...
floele Posted September 12, 2010 Author Report Share Posted September 12, 2010 Hm, it wasn't intended for commands yet. Seems like I need to adjust that for the next version. Link to comment Share on other sites More sharing options...
shawn Posted September 12, 2010 Report Share Posted September 12, 2010 Thank you! Link to comment Share on other sites More sharing options...
necrox Posted September 13, 2010 Report Share Posted September 13, 2010 You don't have to use {startuppath} to write your log file. Remove your startuppath variable and it will create Updates.txt in the same folder the Ketarin.exe is located. echo %date% - %time% // {category} {appname} v{version} >> Updates.txt Link to comment Share on other sites More sharing options...
CybTekSol Posted September 13, 2010 Report Share Posted September 13, 2010 Lookin' GOOD so far Flo... THANKS as always! Link to comment Share on other sites More sharing options...
shawn Posted September 14, 2010 Report Share Posted September 14, 2010 Okay, how do I open it in N++? Currently, I use: "C:\Program Files (x86)\Notepad++\notepad++.exe" "%USERPROFILE%\Desktop\Updates.txt" That's not possible, and my attempt to include just the filename fail. Neither of these work to open the file in N++, even though txt files are associated with it: "%USERPROFILE%\Desktop\Updates.txt" Updates.txt Link to comment Share on other sites More sharing options...
necrox Posted September 14, 2010 Report Share Posted September 14, 2010 You have to split it into two different steps. The first one is to save the file. And the second one is to open it. echo %date% - %time% // {category} - {appname} - {version} >> "Updates.txt" start "%ProgramFiles(x86)%\Notepad++\notepad++.exe" "Updates.txt" And if the Update.txt is located on desktop just change the path to "%USERPROFILE%\Desktop\Updates.txt" Link to comment Share on other sites More sharing options...
shawn Posted September 19, 2010 Report Share Posted September 19, 2010 "%ProgramFiles(x86)%" doesn't exist on 32-bit computers, so it won't work in my screwy network. I know, I've been through this a lot trying to find a reliable cross-platform method to use the same jobs.db and local (network storage) cache settings without having to change settings based on the environment. The start command should really be avoided too, since it's not cross-platform consistent. Maybe the best method is to set the executeable based on the system variables? IF "%ProgramFiles(x86)%"=="" THEN "%ProgramFiles%\Notepad++\notepad++.exe" "Updates.txt" IF NOT "%ProgramFiles(x86)%"=="" THEN "%ProgramFiles(x86)%\Notepad++\notepad++.exe" "Updates.txt" Link to comment Share on other sites More sharing options...
shawn Posted September 19, 2010 Report Share Posted September 19, 2010 Nope, that doesn't work either. Link to comment Share on other sites More sharing options...
floele Posted September 19, 2010 Author Report Share Posted September 19, 2010 You may want to use Process Explorer to find out which environment variables are currently in use and which values they have. Windows might to some tricky stuff with these variables. Link to comment Share on other sites More sharing options...
shawn Posted September 20, 2010 Report Share Posted September 20, 2010 ProcExp shows that the same environment variables I expect to be there, but that wasn't the problem. It was "THEN". Batch doesn't understand it. Removed, and working fine now: IF "%ProgramFiles(x86)%"=="" "%ProgramFiles%\Notepad++\notepad++.exe" "Updates.txt" IF NOT "%ProgramFiles(x86)%"=="" "%ProgramFiles(x86)%\Notepad++\notepad++.exe" "Updates.txt" Thanks everyone! Link to comment Share on other sites More sharing options...
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