The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
Google UNIX.COM


Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
converting ksh scripts to sh sherkaner Shell Programming and Scripting 11 09-28-2007 08:39 AM
converting ksh scripts--.bat in window's 2.5lt V8 Windows & DOS: Issues & Discussions 3 11-28-2006 04:23 PM
Converting Text File into XML using Unix Shell Scripts Laud12345 Shell Programming and Scripting 10 02-16-2005 10:35 AM
Converting Unix executable files Steven Greenber OS X (Apple) 4 02-04-2005 09:58 AM
Converting BMP to BM (or other unix format) EJ =) UNIX Desktop for Dummies Questions & Answers 1 06-12-2002 05:42 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-03-2003
Registered User
 

Join Date: Sep 2003
Posts: 1
Converting UNIX scripts to DOS

Is there a tool available to convert UNIX (BASH Shell) scripts to DOS scripts?

I understand that DOS scripting is far inferior to unix scripting, and therfore this conversion may not be possible.

Alternativley, perhaps I could convert my Unix scripts to C... then compile it for a windows environment. Are there any tools to convert unix to C?

I currently run UNIX scripts on windows through emulation (using Cygwin). However, my boss wants to do away with this as he believes it unnecessary I have several thousand lines of script, most of which i didn't write, that now has to be "converted"

HELP!
Reply With Quote
Forum Sponsor
  #2  
Old 09-04-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,666
Are you really running dos? Not windows of some kind?

I am not a windows expert, but I now have a notebook with windows xp on it. On xp at least, there are several scripting choices. You are probably thinking of batch files. Another choice is visual basic. Search for files that match *.vbs to see if you have some. Visual basic has a chance at handling those scripts. Forget batch files...there is no hope.

I don't know of any automatic converter. This will almost certainly be a rewrite.
Reply With Quote
  #3  
Old 11-28-2006
Registered User
 

Join Date: Nov 2006
Posts: 5
unless ur using advanced editing tools like AWK or sed unix scripts should work fine with minor modifications. cause if ur working on GNU environment it won't recognise the awk or sed instead it recognises gawk or gsed.
and windows wont read multiple line on code it should be in single line of code,
correct me if I am wrong.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0