Hi Jim,

Well, that's not quite the way to go about it. I did a quick Google
search, and found a decent article which discusses why you shouldn't
write to your program folder and then tells you have to save to your
user application data folders with code examples. Try this link

Where should I store my files that my program uses/creates?
http://www.vbforums.com/showthread.php?564256-Classic-VB-Where-should-I-store-the-files-that-my-program-uses-creates

As stated this article explains how to do this properly for XP, Vista,
Windows 7, and Windows 8 and gives some code examples. Hope this
helps. :D

On 5/14/13, Jim Kitchen <[email protected]> wrote:
> Hi Thomas,
>
> I found that the VB6 change path command chdir does not like the
> %appdata%
> And I am not sure how to get VB6 to ask for it to get the path to write the
> game files to.  However the below works
>
> Open "c:\kit.bat" For Output As #1
> Print #1, "cd %appdata%"
> Close #1
> Shell "c:\kit.bat", 3
> DoEvents
> G$ = CurDir
>
> So if I am allowed to write that first bat file, g$ would now have the path
> to write the game files to.  Well I guess that I would first want to check
> for and ad a sub folder kitchensinc, but other than that...
>
> BFN
>      Jim
>
> Check my web site for my 35 free games.
>
> [email protected]
> http://www.kitchensinc.net
> (440) 286-6920
> Chardon Ohio USA
> ---
> Gamers mailing list __ [email protected]
> If you want to leave the list, send E-mail to
> [email protected].
> You can make changes or update your subscription via the web, at
> http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
> All messages are archived and can be searched and read at
> http://www.mail-archive.com/[email protected].
> If you have any questions or concerns regarding the management of the list,
> please send E-mail to [email protected].
>

---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].

Reply via email to