CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: General Discussions: General Questions: reload the list of disks at RunTime: Edit Log

New User

Aug 3, 2016, 9:21 AM

Views: 5450
reload the list of disks at RunTime

I have following script which is execute in Cygwin:

system ("create_mount_G_disk.bat");
# G:\ mounted
if (-d "G:") die "G: not found";

it basically calls a batch file that creates a VHD disk G:\ and mounts it.
Then if I check whether it exists, script signals always an error. Then I have to restart the script in order to pass the check

As I understood, Perl caches the list of disks at startup. So the question is whether we can force Perl to reload this list ?
is there any hint for this ?
Thanks :)

(This post was edited by wajdi on Aug 3, 2016, 9:57 AM)

Edit Log:
Post edited by wajdi (New User) on Aug 3, 2016, 9:57 AM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives