Jump to content

Easy question


Potrus
 Share

Recommended Posts

I have got a problem, let's say i have text and i have words in "xxxx" whats the command to copy only the text in "" ,

it looks like this:

1360481,"xxxxxx"
1360482,"yyyyyyyy"
1360483,"wwwwwww"
1360484,"zzzzz"
1360485,"qqqqqqq"
1360486,"uuuuuuuu"
Link to comment
Share on other sites

; File name - location
$File = "C:\temp_Folder\test.txt"

; read a line in the file
$Info = FileReadLine($File, 1)

; ************** for testing only
$Info = '1360481,"xxxxxx"'

; split the string by the comma
$Split = StringSplit($Info, ",")

; remove the quote marks
$Result = StringReplace($Split[2],'"', '')

MsgBox(0x0,"Info", $Result)

remove the line under "************** for testing only" to use the file line you read

8)

NEWHeader1.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...