Jump to content

anybastard

Active Members
  • Posts

    46
  • Joined

  • Last visited

anybastard's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi guys , thanks a lot for all your suggestion and help . @ AdamUL , I will try to implement your suggestion BR AmyB
  2. Hi. thanks for your reply @ Reb I will check your suggestion @ Asianqueen My problem is not change the reg value , it works w/o problem . My question is skip UAC popup and run the script w/ admin privilege Br AnyB
  3. Hi JohnOne , I don't understand BR AnyB
  4. Hi guys , I need your help for a stupid issue , but I'm not able to solve Basically I need to change some registry value and with RegWrite command all works fine . My problem is related to UAC pop-up , because I'm not able to skip it and run my script with admin privileges ( also using #RequireAdmin ) BTW , for different reasons I cannot disable UAC Do you have any idea or workaround for me ? Thanks a lot BR AnyB
  5. Hi guys , sorry for my delay ... A big thanks to all for advice and source .....today i completed all the steps and now is necessary merge them BRs An1B.
  6. Hello guys , always me ... I have again a little problem related to "my" script The problem is on this line shrink minimum=8704-----------------------------> Constant value 3 this part of the code is ok If StringInStr($aArray[$i], "shrink minimum:") Then $shrinkMinimum = StringRight($aArray[$i], 4) ;search the array for the words "shrink minimum" I will have shrink minimum: 8704 . This mean that inside specific variable i have correct numeric value for next step . The problem is that this number could be 4 or 5 characters . I mean that on different txt file I could have shrink minimum value 23456 But if i change "StringRight($aArray[$i], 4" and put 5 instead of 4 when I will have on my txt file the value with 4 characters i will have my variable with this value =8704 and this is not ok for my next step Can you help me to solve this question , please ? BRs AnyB
  7. Hi Careca , sure , I will do and thanks a lot for your suggestion, advice and.....code BRs An1B
  8. Hi guys , as you understand I use autoit very rarely ..... OK I don't know if this is elegant way or correct way but seem work fine I made a "preliminary " script to change/modify constant value1 row from size=400 to size1=400 and used JLogan3o13 code in order to have all data necessary ready to use for the next step
  9. Hello . the first one it is a part of a loop all the tool function is - Calculate new storage size -> done - Grab all data ( constant ) from old txt -> In progress - recalculate a new storage size -> no problem for this part - write a new value on old txt file -> no problem for this part as you can see my issue is/was how grab all data That's it BRs An1B
  10. Hi JLogan3o13 your file is OK for my purpose ( thanks for that ) , I would ask only a little and last help If StringInStr($aArray[$i], "create partition ") Then ;search Array for the words "create partition" Select Case StringInStr($aArray[$i], "primary size=") $primarySize = StringRight($aArray[$i], 3) Unofrtunatly constant value 1 and variable value have same name so this portion the script save inside $primarySize only 1 of 2 . Is there a way to save both ? Thanks again . BRs An1B
  11. Hello , lazyGuys ??? LOL I will change with noSkilledguys In anyway thanks to all for your advice and code BRs AnyB
  12. Hi ... sorry for my mistake I will try Tnx BRs AnyB
  13. Hi Jdelaney , Thanks for the answer parse out everything right of the '='. --> I have different "=" on my txt file and many of these are not necessary please could you make an example based on my file ?? Thanks a lot AnyB.
  14. Hi Careca , first for all thanks for your reply . and yes you are right at the end is only mathematic step but my main problem is how "grab" constant values and how put the variable number on correct position Can you make an example ...if possible ? Thanks again AnyB,
  15. Hi guys , I need you help with regex and TXT file manipulation The question is this I need to change HDD on several units , and new hdd could have different size but must have same structure , so i want manage previous diskpart script file to perform this operation let's me explain , this is a tipical txt file create partition primary size=400 ------------------------> Constant value 1 create partition EFI size=300-----------------------------> Constant value 2 create partition MSR size=128-----------------------------> Constant value 3 create partition primary size=xxxxx ---------------------> Variable value exit Now I want if possible calculate the new hdd size -> OK DONE put constant values on different variables subtract all constant values from new hdd size and put the difference on variable position ( Variable value ) inside txt file Can you help me with this regex manipulation ...sorry but I'mno skilled about regex Thanks in advance for your help AnyB.
×
×
  • Create New...