Hi,
I need to find if there are any substituted drive on the machine.
Unfortunately the Drive.Enumerate function doesn’t display the substituted drive. Hence i am using the command line option to retrieve the same.
I ran the below command, but the result is nil, if i run the same file manually its working fine. Can anyone help me out?
I even tried the commandline plugin, but in vain.
I need to find if there are any substituted drive on the machine.
Unfortunately the Drive.Enumerate function doesn’t display the substituted drive. Hence i am using the command line option to retrieve the same.
I ran the below command, but the result is nil, if i run the same file manually its working fine. Can anyone help me out?
I even tried the commandline plugin, but in vain.
Code:
TextFile.WriteFromString(_TempFolder .. "\\Information.bat", "subst > outputs.txt", false); --File.Run(_TempFolder .. "\\Information.bat", " ", _TempFolder,SW_SHOWNORMAL,true); File.Run(_SystemFolder.."\\cmd.exe", "/C " .. _TempFolder .. "\\Information.bat ", "", SW_HIDE, true); text_contents = TextFile.ReadToTable (_TempFolder .. "\\outputs.txt");
Comment