Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8933381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:31:28+00:00 2026-06-15T09:31:28+00:00

I found a useful script at Refer to/select a drive based only on its

  • 0

I found a useful script at Refer to/select a drive based only on its label? (i.e., not the drive letter) and can run it either in a cmd.exe window or under cygwin to find drive letters on my computer.

What I can’t figure out is how to get the returned string (e.g. E:) to show up in my R console. If I run system('cscript /nologo DriveFromLabel.vbs label',intern=TRUE) I get character(0) as the result.

Is there some switch to make the result of this comment in a cmd.exe call visible to R, or is there some way to create a script that calls cygwin and returns the cscript result to R?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:31:29+00:00Added an answer on June 15, 2026 at 9:31 am

    This works for me

     system('Cscript  /nologo your_path/DriveFromLabel.vbs DRIVE_LABEL',intern=TRUE)[1]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found a useful shell script that shows all files in a directory
I am not very well in Java Script and i didn't found a solution
For reasons which shall not be enumerated here, I've found it potentially useful to
I found SCons , which looks useful, but it's not exactly what I'm looking
From hard experience I've found it useful to occasionally save the state of my
I have searched for a CGI and read about it but nothing useful found.
I'm writing a physics simulating program, and found after() useful. I once would like
I know this is a recurring question, but I haven't really found a useful
I'm trying to learn the Enterprise Library. I found this useful code sample to
One of my colleagues uses TextPad, and one feature I found really useful is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.