

InterviewSolution
Saved Bookmarks
1. |
Solve : Find path in the Win Registery? |
Answer» Yes, but if we look at your code: Code: [Select]@echo off & setlocal & set sim=Nothing tells it to USE "The Sims\GameData\Userobjects\filename\filename.iff" When I read your code, something tells me the path "The Sims\filename\filename.iff" would be used, which I don't get why isn't I mean, Where does it get "GameData\UserObjects\" from? It's not even in the script, or defined in the win registeryQuote from: Ryder17z on April 18, 2009, 11:14:38 AM Yes, but if we look at your code:Nothing tells it to use "The Sims\GameData\Userobjects\filename\filename.iff"how would i know where it get the value, why dont you tell me. i am not the one who makes the sim. and i even never play the sims. i only post code based on your description, assuming %installpath%\gamedata\userobjects\filename\ is the default folder for iff files. ( see below ) Quote from: Ryder17z on April 18, 2009, 05:03:34 AM It copies "filename.iff" to "The Sims\GameData\Userobjects\filename\finename.iff" - which is the correct folderHow can I tell you if I don't know the answear? The path in the script is different than the actual path used /\ /\ | | | | "The Sims\filename.iff" | || || "The Sims\GameData\Userobjects\filename\filename.iff" I feel confused change the path in the script to be the actual path used. No need to do since it works already, but it works like MAGIC, nobody knows how, they just know it works Code: [Select]set q="HKLM\software\maxis\the sims" /v installpath this takes it from the registry. |
|