Question:
Linux Questions On Bat File And OS Name?
cyberdemonimp
2007-11-07 19:43:41 UTC
Ok, I am creating this script that writes a .bat file and I want the program to be friendly to all OS's and I have it writting a .bat file and when the .bat is executed I want the .bat to execute a program in Linux. So how does it work? I am using Windows Vista.

Also I created a if statement where it detects the first part of the name of the OS name. The problem is that I don't know the exact name of the OS like if it was. "Company Name Linux Ver#" or "Linux Ver#.",

So can someone write the "full" name?

This is the code I am using in C#.

System.Environment.OSVersion.ToString();

Thanks, Cyber.
Three answers:
The Master
2007-11-09 14:44:10 UTC
A Batch File (*.bat) is a script written for Dos or the command prompt.



Linux uses bash shell scripts (*.sh)
2007-11-07 19:49:01 UTC
Look up bash and scripting in Linux. Here is a quick tutorial I found doing a search: http://www.freeos.com/guides/lsst/
hargraves
2017-01-06 11:32:11 UTC
you're able to be able to desire to apply domicile domicile windows to repeat information between desktops that are with regards to the comparable community. If the two desktops are definitely no longer with regards to the comparable community, you will no longer have the aptitude to stick to those steps and could desire to could desire to replicate information making use of a few variety of detachable media that could desire to nicely be learn by making use of ability of the two desktops. you will probable be waiting to prefer to pay interest to the call of the computing device the placement you choose to repeat the information. in case you do no longer pay interest to this call, ask somebody who makes use of that computing device, or bypass to the different computing device your self and seem it up (in case you like them, the stairs for looking up a working computing device or computing device call are supplied indoors the notes section later in this help concern rely). on the computing device that contains the information you choose to repeat, click the start button . indoors the seek for field, form 2 backslashes () talked approximately by making use of ability of the call of the computing device to which you choose to repeat the information (working occasion, mylaptop), and then press enter. Open the folder on the different computing device the placement you choose to repeat the information or folders. Open the area in this computing device that contains the checklist or folder you choose to repeat. Drag the checklist or folder you choose to repeat to the area on the different computing device. Notes in case you're having hassle accessing the different computing device or viewing folders on it, you're able to desire to no longer have appropriate sharing permissions. in case you will probable be waiting to prefer to examine the call of your guy or woman computing device, persist with those steps: open device. seek for for the call of your computing device decrease than computing device call, section, and workgroup settings. given which you're making use of vista, open your help and help and form this "duplicate information to a distinctive computing device"


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...