GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Download
  • News
  • Community
  • Resources
  • Language Reference
  • SmallBASIC Manual

This view

  • Original page
  • New address

GeezerVison is showing smallbasic.github.io — SmallBASIC | CHDIR

Edit History

CHDIR

CHDIR dir

Home > Reference > File

Changes the current working directory to dir. In Windows \ needs to be replaced by \\

See CWD to get the current working directory.

Example 1: Linux

print cwd
chdir "/usr/bin"
print cwd

Example 2: Windows

print cwd
chdir "C:\\"
print cwd
Code samples using CHDIR
filemanager.bas   sokoban.bas   sokoban.bas   sokoban.bas  
File
ACCESS   BGETC   BLOAD   BPUTC   BSAVE   CHDIR   CHMOD   CLOSE   COPY   DIRWALK   EOF   EXIST   FILES   FREEFILE   INPUT   INPUT   KILL   LOCK   LOF   MKDIR   OPEN   READ   RENAME   RMDIR   SEEK   SEEK   TLOAD   TSAVE   WRITE  
This page was last edited on Tue, 19 Sep 2023 16:35:19 +0200 | Markdown processed with pandoc 3.1.12.1
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.