henrychien Posted December 4, 2007 Posted December 4, 2007 Global $abc$abc = 'C:\aaa\bbb\ddd\'run ( @ComSpec & "/c" & $abc & "file.lnk","", @SW_HIDE )when i was run this scripit show me a message is ===> Error: Unable to execute the external programso, could some kind man give me a hand , plz tell me why?and how to make it work?I will thank with you very much
Nahuel Posted December 4, 2007 Posted December 4, 2007 Use ShellExecute() for shortcuts.However, if you want to do it your way, make sure to add spaces before and after \c. Like this:run ( @ComSpec & " /c " & $abc & "file.lnk","", @SW_HIDE )
henrychien Posted December 4, 2007 Author Posted December 4, 2007 Use ShellExecute() for shortcuts. However, if you want to do it your way, make sure to add spaces before and after \c. Like this: run ( @ComSpec & " /c " & $abc & "file.lnk","", @SW_HIDE ) YES~~Your way is right way , and thank you , but why need to add spaces before and after \c but however i still will thank you very much
Nahuel Posted December 4, 2007 Posted December 4, 2007 (edited) Try this: Go to Start-->Run and type: cmd.exe /c ipconfig See what happens. Then this: cmd.exe/cipconfig -->'Cannot find external program' Get it? -edit- Were you trying to point out my typo with a stupid joke? You still got it, right? Edited December 4, 2007 by Nahuel
henrychien Posted December 4, 2007 Author Posted December 4, 2007 Try this:Go to Start-->Run and type: cmd.exe /c ipconfigSee what happens.Then this: cmd.exe/cipconfig -->'Cannot find external program' Get it? -edit-Were you trying to point out my typo with a stupid joke? You still got it, right?yap, now i know what happenand thank you very muchyou are a good teacher !! and a big kind man
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