Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (http://www3.telus.net/pfrank)
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Counter Insertion in command line mode

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> General Support
View previous topic :: View next topic  
Author Message
JohnM



Joined: 27 May 2007
Posts: 11

PostPosted: Sun May 05, 2013 10:39 pm    Post subject: Counter Insertion in command line mode Reply with quote

I have been successfully using pFrank in interactive mode with the Insert Counter function and "Don't restart counter for next renaming" checked. I'd hoped to run that from the command line but when I do, it seems to ignore the "Don't restart" option. Any suggestions?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Mon May 06, 2013 2:53 am    Post subject: Reply with quote

Are you using:

\PFrank.exe -k

after checking the "do not restart counter for next renaming" option in the previously run GUI session (you have to exit the session)?

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
JohnM



Joined: 27 May 2007
Posts: 11

PostPosted: Mon May 06, 2013 4:53 pm    Post subject: Reply with quote

I'm not sure I fully understand your question. I ran the PFrank GUI interactively without arguments while developing the script, then I tried running it in command line mode with this command:

"C:\Program Files (x86)\PFrank\PFrank.exe" -e -w -L "C:\Users\John\AppData\Roaming\PFrank\Rename_V1.pfr"

I decided to explicitly reference the pfr file since when the command line is run I don't know which pfr was used in the most recent GUI session (it might have been a pfr developed for a totally different purpose).

I realize that the "last used sequence number" has to be stored somewhere and the pfr file would seem to be a workable choice, but is the pfr file not updated when it is explicitly referenced in command line mode?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Tue May 07, 2013 6:45 am    Post subject: Reply with quote

I think I know what is happening. In order for the 'do not restart counter' option to work, The GUI session will store the last used counter value in the config file so that it can continue with the last counter value in the next session. The command line version of the tool does not write anything into the config file so the last used counter value is never updated.

Unfortunately I don't have time these days to do any debugging so this is not going to be fixed. Sorry.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> General Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com