Hi...
I am after a bit of help in writing some info to a .txt file.
I have made a quick example of what I have so far but what I want to do is take some information from a paragraph
Take its file name
and save as a .text file named as the file name, above.
I have a button
As it stands the a file is created but not as a .txt and if I put
I get errors.
I dont know how to write the script so I end up with
Hoping somebody can help me out here...
Cheers
Example.apz
I am after a bit of help in writing some info to a .txt file.
I have made a quick example of what I have so far but what I want to do is take some information from a paragraph
C:\Users\Malcs\Desktop\Test\[en-gb]_en-gb_windows_10_consumer_editions_version_20h2_updat ed_feb_2021_x64_dvd_1b81c45e.svf
[en-gb]_en-gb_windows_10_consumer_editions_version_20h2_updat ed_feb_2021_x64_dvd_1b81c45e.svf
I have a button
Code:
PG_Image = Paragraph.GetText("Paragraph1"); bFileParts = String.SplitPath(PG_Image); bDrive = bFileParts.Drive; bFolder = bFileParts.Folder; bFileName = bFileParts.Filename; bFileExtension = bFileParts.Extension; bFullFileName = bFileName..bFileExtension; bCurrentFolder = bDrive..bFolder --TextFile.WriteFromString(bCurrentFolder .. "\\Image_Name.txt", bFileName, false); TextFile.WriteFromString(bCurrentFolder .. bFileName, bFileName, false); --File.Open(bCurrentFolder .. "\\Image_Name.txt", "", SW_SHOWNORMAL);
bFileName.txt
I dont know how to write the script so I end up with
[en-gb]_en-gb_windows_10_consumer_editions_version_20h2_updat ed_feb_2021_x64_dvd_1b81c45e.txt
Cheers
Example.apz
Comment