Main Forum > Tweaking.com Support & Help

Log file

<< < (3/3)

MarkAtHome:

--- Quote from: Shane on February 06, 2013, 02:56:32 pm ---Each batch file I have it set like this

"set path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem"

The program pulls its own system variables from the API

sWindowsDriveLetter & "\Tweaking.com_Windows_Repair_Logs\_Windows_Repair_Log.txt"

Shane

--- End quote ---
There are a lot more variables than that...  :wink:

What do you do with %programfiles%, %ALLUSERSPROFILE%, and especially %APPDATA%? Don't forget %CommonProgramFiles%, %CommonProgramFiles(x86)% and %CommonProgramW6432% -- these could be on a drive other than "C".

I know that it is your program and you can do with it as you see fit. Personally, I do not favor programmers hardcoding file locations, but it is certainly your call.

Shane:

--- Quote ---What do you do with %programfiles%, %ALLUSERSPROFILE%, and especially %APPDATA%? Don't forget %CommonProgramFiles%, %CommonProgramFiles(x86)% and %CommonProgramW6432% -- these could be on a drive other than "C".
--- End quote ---

Those are for use in bat files, which my program uses those when needed. There are also API's that my program pulls the information from that the program needs, not the bat files. Those commands dont work in program code there is also no command for bat files to simply pull the Windows drive, it will pull the folder but not the drive, you have to use the system API to pull them. Right now the program pulls the API to pull the Windows folder location. From that it can see what drive letter it is on and for now puts the log files on the drive that the Windows folder is on.

I plan on adding more options down the road as the program has become rather popular and I am getting a lot of request for things. So the program is still growing :-)

Shane

Navigation

[0] Message Index

[*] Previous page

Go to full version