Link to home
Start Free TrialLog in
Avatar of rogerdjr
rogerdjrFlag for United States of America

asked on

Mapping google drive as a virtual drive on start-up

using this code in a start-up batch file to map a google drive - doesn't work'

Set-upCloudDrives - bat.txt

"C:\Program Files\Google\Drive\googledrivesync.exe"

subst /d s:
subst s: "C:\Users\Roger\Google Drive"

any suggestions

Avatar of NVIT
NVIT
Flag of United States of America image

Is the issue on the lines of the batch file you showed?

Need to step thru and confirm each line.
Avatar of rogerdjr

ASKER

yes the batch runs fine just doesn't map the google drive?

Confirm that the folder exists:

"C:\Users\Roger\Google Drive"

If not, the SUBST should return error:

Path not found - "C:\Users\Roger\Google Drive"
C:\Users\Roger\Google Drive exists

but when the batch file runs it does not show any content on the virtual s drive?
found this on YOutube

How to Mount Google Drive as a Network Drive https://youtu.be/oygO8tnwK_c


Thinking i might try as an alternate solution?

>  using this code in a start-up batch file to map a google drive - doesn't work'

1. Where is the start-up batch file run from?

2. What does Windows Explorer show for C:\Users\Roger\Google Drive?

2a. Are there any files there?

3. SUBST works fine here. Does SUBST S: "C:\Users\Roger\Google Drive" create the S: drive?

3a. Are there any files in S:?
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

How to Mount Google Drive as a Network Drive https://youtu.be/oygO8tnwK_c


This process worked and my google drive is mapped as z drive


I thought it had to be scripted.

Still, Glad you found a solution.

Have a good one 🤙