在Windows命令提示符中打开位于Google文件流驱动器中的文件。

huangapple go评论64阅读模式
英文:

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 &quot;G:\My Drive\LBTC API\V0.2&quot;
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 &quot;G:\My Drive\LBTC API\V0.2&quot;

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

huangapple
  • 本文由 发表于 2020年1月6日 22:46:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/59614085.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定