Jump to content

Recommended Posts

Posted (edited)

hey folks, I'm having an issue with DriveGetLabel on Windows7. It used to work before but since at least 2-3 weeks it doesn't work anymore. It simply returns blank, nothing.

Even using this code from examples it doesn't work:

Local $sLabel = DriveGetLabel(@HomeDrive & "\") ; Find the volume label of the home drive, generally this is the C:\ drive.
MsgBox(4096, "Volume Label: ", $sLabel)

anyone can point to a potential solution to this?

Edited by ALTIN
Posted

For me it works as expected on Win7 x64, 3.3.8.1

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Posted

works as expected

Win7Pro 64Bit AutoIt 3.3.10.2

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

What did you change somewhere in these 2-3 weeks?

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

Maybe the name of this drive is = ''

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Thank you guys, NOW it is working... strange because last night I even formated the USB and DriveGetLabel still wouldn't work... The drive label was "Removable Drive".

Now reading your suggestions above, I renamed it to "Altini" and the function DriveGetLabel started to work again. Then I renamed it back to the old name "Removable Drive" and it worked with that name too. It's a little bit mysterious to me but the important thing is it works and just wanted to confirm this here :)

I am using Windows 7 (32bit) by the way.

I haven''t been using AutoIt in a while and I was thinking maybe this function was deprecated lol

Thanks for your replies :)

Edited by ALTIN
Posted (edited)

In the first case "Removable Drive" was a description given by a system, and this was not a name.

 

 

EDIT:

 

  On 3/17/2014 at 10:12 AM, jchd said:

What did you change somewhere in these 2-3 weeks?

I think he change a whole pendrive ;)

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 3/17/2014 at 8:48 PM, mLipok said:

I think he change a whole pendrive ;)

 

gQld2KU.jpg

I probably changed more than you did in the last year.

Posted

  On 3/17/2014 at 10:14 PM, ALTIN said:

gQld2KU.jpg

 

I probably changed more than you did in the last year.

  On 3/17/2014 at 8:48 PM, mLipok said:

In the first case "Removable Drive" was a description given by a system, and this was not a name.

I think he change a whole pendrive ;)

 

This statement is not meant to be malicious, if you think so, I sincerely apologize.

If you can, please answer whether these statements was right.

In this way we can we learn (by "we" I mean everyone who answers to the questions asked).

Best regards

mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...