Ask a Question

Find a specific file when the folder get created during run time.

SOLVED
AlexKaras
Community Hero

Re: Find a specific file when the folder get created during run time.

Hi,

 

The folder name will be different on every run so the pathname cannot be hardcoded.

Make it dynamic. Something like this:

var MyFolderName = "C:\\Storage\\octCache\\" + NoMoreJPG + "\\";

var FileFullPath = MyFolderName + "imagesnap.jpg";

if (aqFile.Exists(FileFullPath))

  ...

 

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

nedbacan
Contributor

Re: Find a specific file when the folder get created during run time.

cancel
Showing results for 
Search instead for 
Did you mean: