Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting the Source Drive Mac is run from?
#6
Macro
Code:
Copy      Help
str direct = GetCurDir
int mark
out direct
;;to just get letter of drive
str let = " "
let[0] = direct[0]
out let
;;if you want more use get
let = ""
let.get(direct 0 3)
out let
;;go up a directory
for _i direct.len 0 -1
,if direct[_i] = '\'
,,mark = _i
,,break
direct.get(direct 0 (mark+1))
out direct
;;add your other folder and text file
str sampleTextfile = "test text files here\text.txt"
direct + sampleTextfile
out direct


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)