Syed23 Posted November 28, 2012 Share Posted November 28, 2012 Hi All, Could some one help what is wrong with the below declaration of dos command in Autoit #RequireAdmin Run(@ComSpec & " /k 'c:\Windows\System32\manage-bde.exe' |status") Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
Mechaflash Posted November 28, 2012 Share Posted November 28, 2012 Hi All, Could some one help what is wrong with the below declaration of dos command in Autoit #RequireAdmin Run(@ComSpec & " /k 'C:\Windows\System32\manage-bde.exe' |status") if status is supposed to be a switch... try /status Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
Syed23 Posted November 28, 2012 Author Share Posted November 28, 2012 when i do that, this is what the result i get "The filename, directory name, or volume label syntax is incorrect." Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
BrewManNH Posted November 28, 2012 Share Posted November 28, 2012 Use manage-bde -status instead. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Mechaflash Posted November 28, 2012 Share Posted November 28, 2012 (edited) WAIT! It's your quotations. DOS doesn't like single quotes for paths. Run(@ComSpec & ' /k "C:\Windows\System32\manage-bde.exe" -status') Edited November 28, 2012 by Mechaflash Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
Syed23 Posted November 28, 2012 Author Share Posted November 28, 2012 WAIT! It's your quotations. DOS doesn't like single quotes for paths. Run(@ComSpec & ' /k "C:\Windows\System32\manage-bde.exe" -status') 'C:\Windows\System32\manage-bde.exe' is not recognized as an internal or externa l command, operable program or batch file. Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
UEZ Posted November 28, 2012 Share Posted November 28, 2012 (edited) | is the pipe char which pipes the answer from manage-bde to status. Status is probably unknown command. Edit: then checkout the path to manage-bde.exe. Br, UEZ Edited November 28, 2012 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Syed23 Posted November 28, 2012 Author Share Posted November 28, 2012 | is the pipe char which pipes the answer from manage-bde to status. Status is probably unknown command.Br,UEZHi UEZ, if i run the command "manage-bde -status" on command prompt i will get the answer which i am looking for. Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
UEZ Posted November 28, 2012 Share Posted November 28, 2012 Try this: Run(@ComSpec & ' /k "manage-bde -status"') Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Syed23 Posted November 28, 2012 Author Share Posted November 28, 2012 Thank you so much UEZ! Found what was wrong. I am using windows 7 64 bit machine and the SciTe is running as 32 bit version so the conflic was happening. now running as 64 bit version where the problem is resolved Thank you so much for everyone's effort! Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now