Page 1 of 1

runret() bug?

Posted: 20 Apr 2015 14:52
by highend
v15.00.0409

Please execute:

Code: Select all

 text runret("cmd /c vol C:");
This should deliver an output like this (at least it does if you use vol C: on the command line):
C:\Windows\System32>vol C:
Datenträger in Laufwerk C: ist Server 2012 R2 U1
Volumeseriennummer: AE42-95EB
But in XY I get this:
Unbenannt.png

Re: runret() bug?

Posted: 20 Apr 2015 15:42
by bdeshi
all right here. What does the error say?

Re: runret() bug?

Posted: 20 Apr 2015 16:08
by admin
Works fine here.

(@Sammay: The error says: Directory name invalid.)

Re: runret() bug?

Posted: 20 Apr 2015 17:25
by highend
Works fine here.
Go to "Computer". Click on your DVD-Drive. Make sure there is no CD/DVD in.

You have to get the
"Location currently not available.
<drive letter:>"

message.

Execute

Code: Select all

text runret("cmd /c vol C:");
again...

Re: runret() bug?

Posted: 20 Apr 2015 17:43
by TheQwerty
Not really a bug... you're not specifying the working directory so it uses <curpath> which is not valid.

Code: Select all

::text runret("cmd /c vol C:", <xydrive>);
Though I imagine if you run XY from a removable drive/disc and then remove the media while XY is running this too will fail. Might be better using %winsysdir% or another env. variable.

Re: runret() bug?

Posted: 20 Apr 2015 18:46
by highend
Thank you, TheQuerty!

Using %windir% now and it works fine :)