LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 February 3 2020

duke-of-bytes
Member

ini editing

Hello awesome peeps

in my job , we have a lebanese erp that is a bit confusing - each time a user wants to change the POS he is editing , he needs to change a word in the retail.ini file found in his windows folder
with 2 or 3 pos this is manageable , but i was thinking of creating a small script or program to help the user change this word via gui
what is your advice ? is it doable ?

Offline

#2 February 3 2020

rolf
Member

Re: ini editing

Of course, wscript or power shell

Offline

#3 February 3 2020

duke-of-bytes
Member

Re: ini editing

rolf wrote:

Of course, wscript or power shell

I have 0 knowledge in programming..can you gibve me some pointers ?

Offline

#4 March 9 2020

duke-of-bytes
Member

Re: ini editing

hey everyone .. i still didnt find a solution for this
i want the script to be a small app ( like old windows free apps and such ) instead of a script like the below

qDgecQB.png

Offline

#5 March 10 2020

rolf
Member

Re: ini editing

I think a command line script would be easier.
I'm more of a Linux scripting guy.

Last edited by rolf (March 10 2020)

Offline

#6 March 10 2020

nuclearcat
Member

Re: ini editing

compiled to redistributable exe python app with some library for gui should be easy enough

Offline

#7 March 10 2020

duke-of-bytes
Member

Re: ini editing

the users are accountants , better to keep script away from them

I should start learning python again .. i took a course last year about network automation but forgot everything

if anyone can help me build this for a small fee i would be grateful

Offline

#8 March 10 2020

RandomMemory
Member

Re: ini editing

Look into using configparser in python, implement your solution as a script first, then bind the functions to tkinter buttons for UI. And when you're done you can compile the script into an exe using this tool https://pypi.org/project/auto-py-to-exe/

Last edited by RandomMemory (March 10 2020)

Offline

#9 March 10 2020

scorz
Member

Re: ini editing

duke-of-bytes wrote:

the users are accountants , better to keep script away from them

I should start learning python again .. i took a course last year about network automation but forgot everything

if anyone can help me build this for a small fee i would be grateful

pm me your details (ini path, section name to change etc..)
I'm too bored, I'll code it in window form for fun.

Offline

#10 March 10 2020

rolf
Member

Re: ini editing

I would imagine someone with some VB experience can put something together.

Offline

#11 March 10 2020

VincentKeyboard
Member

Re: ini editing

I'll take a look at writing something in Qt next Sunday if no one does it by then. I've heard of a library called iniparser. It may be worth checking out. https://github.com/ndevilla/iniparser

Last edited by VincentKeyboard (March 10 2020)

Offline

#12 March 10 2020

duke-of-bytes
Member

Re: ini editing

Thank you guys ..i will take a look at it

Offline

#13 March 11 2020

yasamoka
Member

Re: ini editing

Send us the structure of the .ini file and what you want to do exactly.

Offline

#14 March 13 2020

duke-of-bytes
Member

Re: ini editing

Scorz wrote a small ini editing exe
it worked beautifully with admin rights , need to test what permissions are needed for a domain user

Offline

Board footer