while [1 = 1]
do
eject
sleep 1
eject -t
sleep 1
done
And this is said to be the same:
watch -n 1 eject -T
What does it do?What's the equivalent in batch?
I'm debugging a batch file left behind by an old employee and I've come across the line:
@nmake -f makefile /E 2>&1 | tee %LOGFILEPATH%
What does this do?
I know what @nmake -f makefile /E does and I know what tee %LOGFILEPATH% does, but I can't find anything on what the 2>&1 | means.
Thanks
Hi,
I want to make something like this...
:LoopBegin
if ???? goto End
some other work goes here*
gotoLoopBegin
:End
The "????" part should be a check that a file exists with the name "exit.txt" for example. If such a file exists in the current folder, I want the batch file to just exit. Is there a way to do this?
Thanks
Hi ,
I need a batch file which deletes all the folders that were created between a specific date.The dates should be user input. That is created date from and till provided by user input.
Thanks
Nis
In reference to my previous question regarding making the .EXE file for demonstration
http://stackoverflow.com/questions/2862067/how-to-make-exe-for-demonstration-of-a-android-software-built-in-eclipse
Can anyone explain creating batch file to launch the emulator?
I want to run a Firebird stored procedure from a batch file or similar on a desktop. The stored procedure contains insert statements and update statements with if possible parameters that I would like to pass.
Any ideas or other suggestions would be appreciated.
I'm kind of going through DOS again and it's been ages, so I need a lot of help.
My question is; how can I make a batch file open a popup screen?
Like:
Sorry for the poor English, I'm Dutch/Italian .<
I am looking for a c# example project of a winform wich redirect the output from a batch file running in background to any kind of winform control.
Any suggestions?
Thanks!
Hi,
I need to copy a /home/user folder from one hardisk to another one. It has 100000 files and around 10G size.
I use
cp -r /origin /destination
sometines I get some errors due to broken links, permissions and so on. So I fix the error, and need to start again the copy.
I wonder how could I tell the command "cp", once it tries to copy…
I know that the copy command has an option to automatically replace a file if it already exists, but I want to know if it is a way to copy the files only if they not already exist (/Y). I do not know the actual file names in the batch code, as I copy from the source using wildcards in the copy command:
copy *.zip c:\destination
The reason…
Its possible to rename files all at once. But its not possible to change the extension of selected files all at once.
If windows doesn't support this facility .. then is there any batch script or something to work out with ???
I know that the copy command has an option to automatically replace a file if it already exists, but I want to know if it is a way to copy the files only if they not already exist (/Y). I do not know the actual file names in the batch code, as I copy from the source using wildcards in the copy command:
copy *.zip c:\destination
The reason…
Hi, I'm printing a variable say z1 which is a 1-D array containing floating point numbers to a text file so that I can import into Matlab or GNUPlot for plotting. I've heard that binary files (.dat) are smaller than .txt files. The definition that I currently use for printing to a .txt file is:
void create_out_file(const char *file_name,…
Hi - I have to process text files 10-20GB in size of the format:
field1 field2 field3 field4 field5
I would like to parse the data from each line of field2 into one of several files; the file this gets pushed into is determined line-by-line by the value in field4. There are 25 different possible values in field2 and hence 25 different…
I have a domain controller running on Windows 2008 Server R2 and users login to application servers on which Windows 2003 Server SP2 is installed. I have applied a Group Policy to clean temporary internet files on exit i.e to delete all temporary internet files when users close the browser. But the group policy doesn't seem to work as…
I recently wrote a script which queries PyPI and downloads a package; however, the package gets downloaded to a user defined folder.
I`d like to modify the script in such a way that my downloaded files go into a temporary folder, if the folder is not specified.
The temporary-files folder in *nix machines is "/tmp" ; would there be…
Hi,
I have to sync large files across some machines. The files can be up to 6GB in size. The sync will be done manually every few weeks. I cant take the filename into consideration because they can change anytime.
My plan is to create checksums on the destination PC and on the source PC and than copy all files with a checksum,…
I'm trying to "hide" some of my perl program from the end user to make things easier on them. I'm doing what I can to keep them out of the command prompt. The program itself has a GUI designed in Perl/Tk, so they don't have to worry about the command prompt.
Could I write out a quick batch file that goes along the lines of:
…
I'm trying to "hide" some of my perl program from the end user to make things easier on them. I'm doing what I can to keep them out of the command prompt. The program itself has a GUI designed in Perl/Tk, so they don't have to worry about the command prompt.
Could I write out a quick batch file that goes along the lines of:
…
I keep my source html (and images etc.) in separate directories for source control.
Part of making the distro is to have make copy files to output folder and set the attributes.
Today my makefile shows (extract):
%.html:
/usr/bin/install -c -p -m 644 $< $@
www: $(HTMLDST)/firmware.html…
a)
A SQL statement is a single SQL command (for example, SELECT * FROM table1 or SET NOCOUNT ON). A batch on the other hand, is a number of SQL statements sent to the server for execution as a whole unit. The statements in the batch are compiled into a single execution plan. Batches are…
Hello,
I am trying to create a file that contains all of the code of an app. I have created a file called catlist.txt so that the files are added in the order I need them.
A snippet of my catlist.txt:
app/controllers/application_controller.rb
app/views/layouts/*
…
I'm trying to export a bunch of org mode files to PDF using emacs in batch mode. So far, only export to html seems to work.
When I export to html I see the following -
U:\tmpd:\programs\emacs-23.1\bin\emacs.exe -batch --visit=Changelog.org --funcall…