![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Conversion tool Are there any tools available that convert .cmd scripts to powershell scripts? I have found many vbscript tools but have had little sucess finding a tool to convert my .cmd scripts. Any suggestions would be greatly appreciated as my scripts are quite large and a tool would be super. Thanks All, -DrewP |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Conversion tool AFAIK there are none... it would be seriously complicated to write. You have to make a ton of assumptions and it would be effectively useless IMO (meaning it would fail badly.) Conversion tools barely work on languages with constraints... with Batch files you dont have any of those. For example you cannot do much with batch files without external .exe files... how do you convert those? Perhaps taking a functionized approach to the scripts you have would be best. Brandon Shell --------------- Blog: http://www.bsonposh.com/ PSH Scripts Project: www.codeplex.com/psobject D> Are there any tools available that convert .cmd scripts to powershell D> scripts? I have found many vbscript tools but have had little sucess D> finding a tool to convert my .cmd scripts. Any suggestions would be D> greatly appreciated as my scripts are quite large and a tool would be D> super. D> D> Thanks All, D> D> -DrewP D> |
My System Specs![]() |
| | #3 (permalink) |
| | RE: Conversion tool I don't know of such a tool either and I hardly believe that it can be written with reasonable effort. The main blocking point from my point of view is "goto", which is the primary flow control statement of cmd and there is absolutely no functional equivalent in ps. Gerd "DrewP" wrote: Quote: > Are there any tools available that convert .cmd scripts to powershell > scripts? I have found many vbscript tools but have had little sucess finding > a tool to convert my .cmd scripts. Any suggestions would be greatly > appreciated as my scripts are quite large and a tool would be super. > > Thanks All, > > -DrewP |
My System Specs![]() |
| | #4 (permalink) |
| | RE: Conversion tool Thanks for the info guys....Looks like I am going to be learning a ton of powershell to convert my build scripts. -DrewP "DrewP" wrote: Quote: > Are there any tools available that convert .cmd scripts to powershell > scripts? I have found many vbscript tools but have had little sucess finding > a tool to convert my .cmd scripts. Any suggestions would be greatly > appreciated as my scripts are quite large and a tool would be super. > > Thanks All, > > -DrewP |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Conversion tool "DrewP" <DrewP@xxxxxx> wrote in message news:5447C49F-D68F-41CD-ABF6-3380D801D476@xxxxxx Quote: > Thanks for the info guys....Looks like I am going to be learning a ton of > powershell to convert my build scripts. resulting scripts are a lot easier to follow and more capable if you ask me. :-) -- Keith |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| WAV to MP3 Conversion through VB.Net (3.5) | .NET General | |||
| Win 7 conversion | Live Mail | |||
| Conversion | Vista General | |||
| VHS Conversion | Vista hardware & devices | |||