W
W1EO
Guest
I have a VS 2010 executable program that runs as intended in either of two locations if I edit/change the installer offered path. I would like to construct the VS installer so it would automatically modify the offered path based on the path it found itself in. That is if I placed the installer in:
c:\locatoneone\
the offered path would become:
c:\locationone\myprogram.exe
Alternatively, if I placed the installer in:
c:\locationtwo\
The offered path would become:
c:\locationtwo\myprogram.exe
I beleive I have seen this using a symbol but I cannot find a reference.
Please help
Dave W
I’m truly up against a stone wall. I am attempting to determine if a specific file has been recently written to by another program. My periodic recirculation loop finds a new file at startup (LastWriteTime is zero). If I manually transfer a new file it is also found immediately. If I transfer using Team Viewer from one computer to this one, the file is found immediately. However, if the other program creates/writes a new version of the file, my loop finds the first such file immediately but it only finds subsequent new files spasmodically. If I leave my program looping, it will usually find the new file after several minutes. If I examine the created/written file, I find it has indeed been updated with new data appended and a new date modified has been posted. Yet my loop returns the same ftWrite.dwHighDateTime value as previously returned. I suspect it is not truly reading the new Write Time. Why? if(interval==0) { if(_access_s("C:/RMS/RMS TRIMODE/LOGS/RMS Trimode_ADIF_201211.adi",00)==0)//ch
Continue reading...
c:\locatoneone\
the offered path would become:
c:\locationone\myprogram.exe
Alternatively, if I placed the installer in:
c:\locationtwo\
The offered path would become:
c:\locationtwo\myprogram.exe
I beleive I have seen this using a symbol but I cannot find a reference.
Please help
Dave W
I’m truly up against a stone wall. I am attempting to determine if a specific file has been recently written to by another program. My periodic recirculation loop finds a new file at startup (LastWriteTime is zero). If I manually transfer a new file it is also found immediately. If I transfer using Team Viewer from one computer to this one, the file is found immediately. However, if the other program creates/writes a new version of the file, my loop finds the first such file immediately but it only finds subsequent new files spasmodically. If I leave my program looping, it will usually find the new file after several minutes. If I examine the created/written file, I find it has indeed been updated with new data appended and a new date modified has been posted. Yet my loop returns the same ftWrite.dwHighDateTime value as previously returned. I suspect it is not truly reading the new Write Time. Why? if(interval==0) { if(_access_s("C:/RMS/RMS TRIMODE/LOGS/RMS Trimode_ADIF_201211.adi",00)==0)//ch
Continue reading...