Hi,
Using VFP9sp2 on Win8 and on the same desktop session as an administrator, I'm getting varied results using the run command.
gcFileName = 'e:\folder\sub folder\another folder\100\1.tif'
Run /N2 Attrib -r &gcFileName - worked when testing when I created it, and now it doesn't change the attribute, and it does not error.
Just now I tested these three iterations, and it still will not change the attribute.
Run /N2 Attrib -r '"' + (gcFileName) + '"'
or
Run /N2 Attrib -r '"' + &gcFileName + '"'
or
Run /N2 Attrib -r (gcFileName)
If I use the OS's command window, it works as expected by typing...
Attrib -r "e:\folder\sub folder\another folder\100\1.tif"
I haven't closed the session yet because I'm keeping its current state in the debugger open while testing for a fix.
The file is not open as I can delete it with Windows explorer, then add it back and set its attribute to RA, and when setting the "set next line to" in the debugger to it and execute it again, it still fails...
What can I do to test and fix this?
Thanks,
Stanley
Using VFP9sp2 on Win8 and on the same desktop session as an administrator, I'm getting varied results using the run command.
gcFileName = 'e:\folder\sub folder\another folder\100\1.tif'
Run /N2 Attrib -r &gcFileName - worked when testing when I created it, and now it doesn't change the attribute, and it does not error.
Just now I tested these three iterations, and it still will not change the attribute.
Run /N2 Attrib -r '"' + (gcFileName) + '"'
or
Run /N2 Attrib -r '"' + &gcFileName + '"'
or
Run /N2 Attrib -r (gcFileName)
If I use the OS's command window, it works as expected by typing...
Attrib -r "e:\folder\sub folder\another folder\100\1.tif"
I haven't closed the session yet because I'm keeping its current state in the debugger open while testing for a fix.
The file is not open as I can delete it with Windows explorer, then add it back and set its attribute to RA, and when setting the "set next line to" in the debugger to it and execute it again, it still fails...
What can I do to test and fix this?
Thanks,
Stanley