03-29-2012 06:13 AM
Hello,
I am trying to have the program point to the Users directory with Windows 7 operating system. I need it to read a Data.txt file in their User folder. Any ideas would be greatly appreciated.
I tried this with no luck.
Thanks,
John
03-29-2012 06:40 AM
Try %UserProfile%
I don't think you need the C:\
for example:
%UserProfile%\APSST 2012\SMR Data.txt
03-29-2012 07:16 AM
Hello,
I get an error, see attachmnent please.
Thanks
03-29-2012 07:48 AM
You can't use %something%. %something% is a shell variable, not a substitution macro that can be used for file I/O functions. You have to pass in an absolute path to the File I/O functions. You can use the Get System Directory function to return the path for a specific directory, such as the user's home directory.