Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open a file located in google file stream drive from command promt on windows

I'm currently running the scrip located on Google Drive file stream from the Spyder IDE with no problem, but looking for a run from anaconda promt. When I try:

cd  G:\My Drive\LBTC API\V0.2

It doesn't do anything at all, I got the same result if I try:

cd  G:\

Thanks

like image 533
Chuox Avatar asked Sep 16 '25 07:09

Chuox


2 Answers

The cd command (or chdir) changes the current directory of the given drive, but does not change the current drive:

rem /* This changes the current directory of drive `G:` to `\My Drive\LBTC API\V0.2`,
rem    but if you are on another drive, say `C:`, you will not notice a change: */
cd "G:\My Drive\LBTC API\V0.2"
rem // When you change to the drive `G:` you will see the effect of the `cd` command:
G:

To change the drive as well as you must specify the /D option:

rem // This changes to the drive `G:` and changes its current directory:
cd /D "G:\My Drive\LBTC API\V0.2"

Actually the quotation marks around the path is not needed for the cd command, but I tend to use them also here as they do not harm, and they are needed for paths in many other situations.

like image 135
aschipfl Avatar answered Sep 19 '25 06:09

aschipfl


First you change to the virtual drive and then you change the directory:

$ G:
$ cd /My Drive/LBTC API/V0.2

That should work fine, hope it helps

like image 21
Carlos Castro Avatar answered Sep 19 '25 05:09

Carlos Castro