Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
foreach f files ...counter
#4
Gintaras Wrote:run "cmd.exe" "/K cd folder"

doh!

you need to add a finishing backslash to folder.

Function cmd_prompt
Trigger ^Shell_menu "cmd here" 0x11 "" "" "open cmd prompt with selected path"     Help - how to add the trigger to the macro
Code:
Copy      Help
function $files
str f

foreach f files
,_i+1
,if _i<2
,,str p.from("/K cd " f "\")
,,run "cmd.exe" p
,else
,,out "doh!"
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)