loops

powershell : increment foreach loop datas from a csvfile to an xml output file

蹲街弑〆低调 提交于 2020-07-23 07:37:31
问题 Could you help me implementing a counter in order to generate an xml file with multiple element from a csv inside? Here is the csv file UCB63_DATENUM;U6618_FILENAME;UF6E8_CANAL;U65B8_IDRP 7/8/19 22:27;457E6659_ZN_LIQRLVPR_A_V_ML.pdf;ML;1367091 9/11/19 23:03;49453878_ZN_LIQRLVPR_A_V_ML.pdf;ML;106440 9/24/19 21:04;497E585B_ZN_LIQRLVPR_A_V_CS.pdf;CS;1536658 2/12/20 22:12;58453B75_ZN_LIQRLVPR_A_V_ML.pdf;ML;1406091 and the code My return on the screen is good but as I am not calling the value, it

powershell : increment foreach loop datas from a csvfile to an xml output file

廉价感情. 提交于 2020-07-23 07:36:17
问题 Could you help me implementing a counter in order to generate an xml file with multiple element from a csv inside? Here is the csv file UCB63_DATENUM;U6618_FILENAME;UF6E8_CANAL;U65B8_IDRP 7/8/19 22:27;457E6659_ZN_LIQRLVPR_A_V_ML.pdf;ML;1367091 9/11/19 23:03;49453878_ZN_LIQRLVPR_A_V_ML.pdf;ML;106440 9/24/19 21:04;497E585B_ZN_LIQRLVPR_A_V_CS.pdf;CS;1536658 2/12/20 22:12;58453B75_ZN_LIQRLVPR_A_V_ML.pdf;ML;1406091 and the code My return on the screen is good but as I am not calling the value, it

Is it possible to check for a key press while a loop is running using a batchfile?

爷,独闯天下 提交于 2020-07-23 06:59:05
问题 I'm quite stuck on this one; I need a batch (most other programtypes are restricted on the system this has to be run on) to run about 10.000 times, then stop. I got this far with this method: (generalized and simplified here, yet would do the trick to explain stuff with, because the file just clicks a bunch of stuff, just inhumanly fast) @echo off set loop=0 :start echo Hello world. set /a loop=%loop%+1 if "%loop%"=="10000" goto exit goto start :exit exit The above code is working, the

Is it possible to check for a key press while a loop is running using a batchfile?

两盒软妹~` 提交于 2020-07-23 06:57:18
问题 I'm quite stuck on this one; I need a batch (most other programtypes are restricted on the system this has to be run on) to run about 10.000 times, then stop. I got this far with this method: (generalized and simplified here, yet would do the trick to explain stuff with, because the file just clicks a bunch of stuff, just inhumanly fast) @echo off set loop=0 :start echo Hello world. set /a loop=%loop%+1 if "%loop%"=="10000" goto exit goto start :exit exit The above code is working, the

Is it possible to check for a key press while a loop is running using a batchfile?

元气小坏坏 提交于 2020-07-23 06:56:09
问题 I'm quite stuck on this one; I need a batch (most other programtypes are restricted on the system this has to be run on) to run about 10.000 times, then stop. I got this far with this method: (generalized and simplified here, yet would do the trick to explain stuff with, because the file just clicks a bunch of stuff, just inhumanly fast) @echo off set loop=0 :start echo Hello world. set /a loop=%loop%+1 if "%loop%"=="10000" goto exit goto start :exit exit The above code is working, the

Clear entire line from cin instead of one character at a time when the user enters bad input

主宰稳场 提交于 2020-07-22 21:36:43
问题 I have a question on some commands for cin. I'm still very new to c++ so bear with me. I'm doing a simple calculation program where the user inputs a value and the program does a calculation with the input. I'm attempting to create a loop that checks the input to ensure the user inputted and number. After some research I found that using cin.clear and cin.ignore will clear the previous input so the user can input a new value after the loop checks to see if its not a number. It works well,

Clear entire line from cin instead of one character at a time when the user enters bad input

青春壹個敷衍的年華 提交于 2020-07-22 21:36:20
问题 I have a question on some commands for cin. I'm still very new to c++ so bear with me. I'm doing a simple calculation program where the user inputs a value and the program does a calculation with the input. I'm attempting to create a loop that checks the input to ensure the user inputted and number. After some research I found that using cin.clear and cin.ignore will clear the previous input so the user can input a new value after the loop checks to see if its not a number. It works well,

How to cycle through borders in Excel and change their color?

白昼怎懂夜的黑 提交于 2020-07-22 21:25:12
问题 I am trying to cycle through active borders in Excel and to change their colors to "next one". Here is the code I have: Dim Color1 As Variant Dim Color2 As Variant Dim Color3 As Variant Dim Color4 As Variant Dim Color5 As Variant Color_default = RGB(0, 0, 0) Color1 = RGB(255, 0, 0) Color2 = RGB(0, 255, 0) Color3 = RGB(0, 0, 255) Color4 = RGB(222, 111, 155) Color5 = RGB(111, 111, 111) Dim cell As Range Dim positions As Variant Dim i As Integer positions = Array(xlDiagonalDown, xlDiagonalDown,

How to cycle through borders in Excel and change their color?

安稳与你 提交于 2020-07-22 21:22:54
问题 I am trying to cycle through active borders in Excel and to change their colors to "next one". Here is the code I have: Dim Color1 As Variant Dim Color2 As Variant Dim Color3 As Variant Dim Color4 As Variant Dim Color5 As Variant Color_default = RGB(0, 0, 0) Color1 = RGB(255, 0, 0) Color2 = RGB(0, 255, 0) Color3 = RGB(0, 0, 255) Color4 = RGB(222, 111, 155) Color5 = RGB(111, 111, 111) Dim cell As Range Dim positions As Variant Dim i As Integer positions = Array(xlDiagonalDown, xlDiagonalDown,

How to cycle through borders in Excel and change their color?

倖福魔咒の 提交于 2020-07-22 21:19:22
问题 I am trying to cycle through active borders in Excel and to change their colors to "next one". Here is the code I have: Dim Color1 As Variant Dim Color2 As Variant Dim Color3 As Variant Dim Color4 As Variant Dim Color5 As Variant Color_default = RGB(0, 0, 0) Color1 = RGB(255, 0, 0) Color2 = RGB(0, 255, 0) Color3 = RGB(0, 0, 255) Color4 = RGB(222, 111, 155) Color5 = RGB(111, 111, 111) Dim cell As Range Dim positions As Variant Dim i As Integer positions = Array(xlDiagonalDown, xlDiagonalDown,