Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to can use "for" to save multiple files with diff. names
#2
without notepad
Macro Macro1830
Code:
Copy      Help
int i j=5
for(i 1 j)
,out i
,str s.getclip
,s.setfile(F"$desktop$\test save files {i}.txt")

with notepad
Macro Macro1831
Code:
Copy      Help
int i j=5
for(i 1 j)
,out i
,int w
,run "notepad.exe" "" "" "" 0x2800 win("Untitled - Notepad" "Notepad") w
,'Cv             ;; Ctrl+V
,'A{fa}            ;; Alt+F A
,str fileName.expandpath(F"$desktop$\test save files {i}.txt")
,'(fileName) Y      ;; File Name and Enter
,clo w


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)