Sign in to follow this  
Followers 0
silvano

get file name

2 posts in this topic

hi,

can get I the file name to store in the variable?

the file is in: c:\tmp\file.txt

;myscript

....

$getFileName = "file.tx"

tks

Share this post


Link to post
Share on other sites



hi,

can get I the file name to store in the variable?

the file is in: c:\tmp\file.txt

;myscript

....

$getFileName = "file.tx"

tks

sorry...

I have request my question ;)

solution in the posts

tks

; Shows the filenames of all files in the current directory.

$search = FileFindFirstFile("*.*")

$file = FileFindNextFile($search)

; Close the search handle

FileClose($search)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0