Print Thread
Change Directory in Command Window
#57778 04/02/18 06:34 PM
Joined: Apr 2001
Posts: 86
Tampa, FL, USA
F
Felix Offline OP
Member
OP Offline
Member
F
Joined: Apr 2001
Posts: 86
Tampa, FL, USA
How can I change the directory in the command window so I can use relative paths when executing scripts?

I tried

HOST cd /projects/cv/sql

Then when I executed
@utils/version.sql

I got "Error reading file"

Usually from a terminal windows I cd over to the folder, start sqlplus and then execute my scripts using relative paths.

Last edited by Felix; 04/02/18 06:37 PM.

Fair Bits...
Felix A. Hernandez
Re: Change Directory in Command Window
Felix #57780 04/03/18 08:58 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
This is not possible in the Command Window. The HOST CD command only affects the temporary process created for the HOST command, and not PL/SQL Developer or the Command Window.

I have added this to the list of enhancement requests.


Marco Kalter
Allround Automations
Re: Change Directory in Command Window
Marco Kalter #57888 05/04/18 12:35 PM
Joined: May 2018
Posts: 10
N
Member
Offline
Member
N
Joined: May 2018
Posts: 10
Thanks, I did not know that.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.041s Queries: 14 (0.013s) Memory: 2.5041 MB (Peak: 3.0424 MB) Data Comp: Off Server Time: 2024-05-19 18:10:17 UTC
Valid HTML 5 and Valid CSS