Jump to content

i don't know full name of folder


Recommended Posts

hi,

i want to delete a file from a folder which is at @DesktopDir.

my problem is that i don't know the folder name but the folder has 'st02' word at the end of folder name. (without quotes)

i know this is not the full name of folder but i want to delete a text file from it.

FileDelete(@DesktopDir & "\st02\old.txt")

the above code is not working because i don't know the full name of folder.

please help me.

_______________________________
Link to comment
Share on other sites

hi,

i want to delete a file from a folder which is at @DesktopDir.

my problem is that i don't know the folder name but the folder has 'st02' word at the end of folder name. (without quotes)

i know this is not the full name of folder but i want to delete a text file from it.

FileDelete(@DesktopDir & "\st02\old.txt")

the above code is not working because i don't know the full name of folder.

please help me.

I don't understand very well why you didn't know the name. Generic name? Although, you can check through FileFindFirstFile() function. The wildcard could be "*st02".
Link to comment
Share on other sites

Precisely, the reason why I included the link. You can test the example included there. IMO, understandable.

thanks but i was fail in achieving my goal in writing this part of my script. need more help ::
_______________________________
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...