Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: IniReadPVt Returns Default Value Blank String
sFavoritesPath = RegQueryStr(@REGCURRENT, "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders[Favorites]") DirChange (sFavoritesPath) sFiles = FileItemize("*.url") sFileCount = ItemCount(sFiles, @TAB) for i = 1 to sFileCount sFileToRead = ItemExtract(i, sFiles, @TAB) sURL = IniReadPvt("InternetShortcut", "URL", "", sFileToRead) Pause(sFileToRead,sURL) next Message("", "DONE")
Here is some modified code:
sFavoritesPath = RegQueryStr(@REGCURRENT, "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders[Favorites]") DirChange (sFavoritesPath) sFiles = FileItemize("*.url") sFileCount = ItemCount(sFiles, @TAB) for i = 1 to sFileCount sFileToRead = ItemExtract(i, sFiles, @TAB) sURL = IniReadPvt("InternetShortcut", "URL", "", sFavoritesPath:'\':sFileToRead) ;;;;;;INCLUDE FULL FILE PATH TO INI Pause(sFileToRead,sURL) next Message("", "DONE")
Article ID: W18292
Filename: IniReadPVt always Returns Default.txt
File Created: 2013:08:12:12:28:48
Last Updated: 2013:08:12:12:28:48