Tamamlanmış

Simple batch file to edit .txt files in a folder

Hi, I need a simple batch file to edit multiple .txt files in a folder. The text files contain hourly stock prices. The stock code (ticker) in each source file is shown as a single digit followed by ".HK". For example: [login to view URL], [login to view URL], [login to view URL], 2347.HK.

I need to convert these stock codes into 4 digits (so need to pad them out with zeros) so the resulting ticker codes would become: [login to view URL], [login to view URL], [login to view URL], [login to view URL] etc (so the batch file only needs to process the files which aren't already 4 digits, i.e. from 1-999).

Each file also need to be renamed from "[login to view URL]" to "0001.HK.txt." Examples of before and after files are attached.

Additional notes: The batch file will be used on Windows 10 (and Windows 11 in the future) and should run on a single click without asking for any input from the user. Any kind of compatible batch file will be ok as long as I can edit it in the future (.bat or powershell etc).

Beceriler: Powershell, Kabuk Betiği, Veri İşleme

Daha fazlasını gör: free batch file deleting temporary files cookies, edit txt files php, use script file edit csv files, edit txt files excel, batch file to find files in folder, batch file to rename files in multiple folders, batch file to rename files from a list, batch file to delete files older than a specified date, batch file to copy files to ftp server, batch file to zip files by date, batch file to zip files 7 zip, batch file to delete files in a folder and subfolders, batch file to rename files with folder name, batch file to copy files from one folder to another on network, batch file to delete files in a folder, batch file to copy files from multiple folders to a single folder, batch file to copy files from one folder to another folder, batch file to move files to another folder based on name, batch file to move files from one folder to another on network, batch file to copy files from one folder to another

İşveren Hakkında:
( 0 değerlendirme ) United Kingdom

Proje NO: #32277685

Seçilen:

devatdawn

hey, I have completed this project already and am ready to deliver! Heres an example of the output: PS > ls [login to view URL] [login to view URL] [login to view URL] PS > powershell ./[login to view URL] PS > ls [login to view URL] [login to view URL] [login to view URL]

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% GBP
(0 Değerlendirme)
0.0

Bu iş için 7 freelancer ortalamada £19 teklif veriyor

(122 Değerlendirme)
6.0
(46 Değerlendirme)
5.7
(28 Değerlendirme)
5.3
(56 Değerlendirme)
4.3
(1 Yorum)
0.8
sureeshh

Hi, I can write a .bat file for the manipulation of the files. Kindly go through my profile and if you find it suitable please reach out to me

£20 GBP in 7 gün içinde
(0 Değerlendirme)
0.0