英文:
Open a file located in google file stream drive from command promt on windows
问题
I'm currently running the script 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
英文:
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
答案1
得分: 13
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 are 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.
英文:
<!-- language-all: lang-cmd -->
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.
答案2
得分: 1
$ G:
$ cd /My Drive/LBTC API/V0.2
这应该可以正常工作,希望有所帮助。
英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论