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.

Newcomers DBPro Corner / Set Dir issue / a little help.

Author
Message
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 21st Apr 2008 15:39
Hey, I'm trying to access a folder within by project folder...
project folder is called 3dEd,
there is a folder within the 3dEd folder called "tex".

I want to change the current directory from the default to "tex"

using

SET DIR "tex" = fail
SET DIR "\tex" = Fail
SET DIR (get dir$+"\tex")=fail.

am I being a total tard? What's going on and why doesn't this work?!

Best
Butters

Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 21st Apr 2008 16:09
if you are in 3dEd and tex is in there use the change directory command (cd)

cd "tex"
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 21st Apr 2008 16:32
tried:

texturefile$="tex"
cd texturefile$


but still returns an error.

Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 21st Apr 2008 18:07
Aha!

Sorry I was being stupid!

Setting DIR within the program loop doesn't work because it continueously tries to set the DIR within the previous one.
duh.

Sorted now, but thanks for the help!

ie:

if path exist("tex")=1
set DIR "tex"
endif

perform checklist for files
textures=checklist quantity()
set cursor 0,30
print get dir$()
for i=1 to textures
print checklist string$(i)
next i

Login to post a reply

Server time is: 2024-11-25 06:25:44
Your offset time is: 2024-11-25 06:25:44