Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / media folder on a memory stick

Author
Message
Green7
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: Switzerland
Posted: 14th Sep 2017 13:48
how would you locate your current media folder, if your project is on a memory stick, and on every computer you use it, your stick got a different drive letter?
i would like to keep my editor on my memo stick, put the map files into the media folder and open them from there again.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th Sep 2017 14:11 Edited at: 14th Sep 2017 14:13
in windows computer management / data storage management you can assign a drive letter.
(also bei systemsteuerung/verwaltung/computerverwaltung/datenspeicher/datenträgerverwaltung/..)
AGK (Steam) V2017.08.16 : Windows 10 Pro 64 Bit : AMD (17.7.2) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
Green7
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: Switzerland
Posted: 14th Sep 2017 14:52
thanks markus. yes i know that, but i got the case that on different rigs the letters are occupied that are free on other machines. on our office rig for example there are drive letters up to "z" .
i would rather look for a dynamic solution, if its even possible...
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th Sep 2017 16:18 Edited at: 14th Sep 2017 16:18
you start the editor from stick,true?
this should return the exe path from editor
GetReadPath
then you need set the write folder, instead of appdata ..
SetRawWritePath

or a function FindStick and loop A-Z
CountWindowsDrives
GetWindowsDrive
GetFileExists
AGK (Steam) V2017.08.16 : Windows 10 Pro 64 Bit : AMD (17.7.2) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
Green7
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: Switzerland
Posted: 16th Sep 2017 13:32
Quote: "this should return the exe path from editor
GetReadPath
then you need set the write folder, instead of appdata ..
SetRawWritePath"


it does, thank you!

Login to post a reply

Server time is: 2024-11-24 07:36:29
Your offset time is: 2024-11-24 07:36:29