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 / The windows directory...the windir$ command, help!

Author
Message
Indian Homie G
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: San Jose, CA
Posted: 23rd Aug 2004 11:18
Okay I'm trying to write a file to the windows directory, just to test something out. here is the code i am using:



But when I compile it,it says "variable windir$ name is not valid"! i also tried "set dir windir$" but that didnt work either. Any suggestions? Thanks
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 23rd Aug 2004 11:59
Windir$ is blank.
And use open to write 1, windir$+"/test.txt"

Indian Homie G
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: San Jose, CA
Posted: 23rd Aug 2004 12:30 Edited at: 23rd Aug 2004 12:30
nope


didnt work. gave me same error message
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 24th Aug 2004 00:25
Comands that return a value need brackets.



And don't go writing games that leave stuff in peoples windows directories

shrink those dbpro exes
Create patches for your dbpro games
Indian Homie G
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: San Jose, CA
Posted: 24th Aug 2004 01:14
Ok ill try that... and lol, I'm going to delete it afterwards, so its all good

Login to post a reply

Server time is: 2024-11-27 07:44:17
Your offset time is: 2024-11-27 07:44:17