here's the code i'm working on. it outputs to clipboard the directory contents.
cant get no output from Local $cdir = FileGetAttrib($fname) ;----dosnt work
nothing relaying on this code works downstream, leaving me with non-trailing \ on the directorys
am i missing something here?
#NoTrayIcon
If $CmdLine[0] = 0 Then Exit
Local $isfile = ""
Local $fsearch = FileFindFirstFile($CmdLine[1] & "\*")
If $fsearch = -1 Then Exit
While 1
Local $fname = FileFindNextFile($fsearch)
If @error Then ExitLoop
Local $cdir = FileGetAttrib($fname) ;----dosnt work
ConsoleWrite($cdir & @CRLF)
Select
Case StringInStr($cdir,"D")
$isfile = $isfile & $CmdLine[1] & "\" & $fname & "\" & @CRLF
Case Else
$isfile = $isfile & $CmdLine[1] & "\" & $fname & @CRLF
EndSelect
WEnd
ClipPut(StringTrimRight($isfile,2))
Beep(500,200)
Exit