If my current working directory is c:\foo\bar\hello\world is there a way to only show the leaf of that path?
Eg. Rather than my prompt being "c:\foo\bar\hello\world>" I want it to be someth...
Hi all,
Very simple i'm sure but I want to know how to pass in a variable into a batch file to put into a DSQUERY command.
Broken down, I want to make life easier for the 1st line suppor...
Hi there
My windows xp home computer has decided to be a problem, after reinstalling windows etc and other stuff, i need to copy my c drive to an external usb hard drive that i have
the ...
I need a batch file to list a given directory by just text files in a flat format and input them into a variable a user can choose, for instance
dir *.txt /b
the contents would then sho...
Hi,
I have a big txt file named dta.afg with approximately 4000 lines in it.
I am in need of a batch file that can do the following:
Read how many line there are in the file (4000 lines...
When I try to start my weblogic server the comand window opens and then immediately closes. How can I get the window to stay open so I can debug it? I have tried to run the command from the di...
My company uses a data entry (database) application called LIMO MAGIC. It's Dos based and the application can run in a Dos window, or the Full Screen Dos. 99 percent of my call center uses i...
The line below will start a printer. The printer requires username and password. Is it possible to pass these credentials to a program via script. Batch or some other? The program has two ...
Hi Experts
I have a question about simple DOS command line FTPing.
While using DOS command line FTP to put an Excel file, I get an empty file on the server, eg 0KB.
I am doing it as p...
Wondering what the syntax is to do this. I have a txt file full of data, each line represents a complete type. I want to use a batch(.bat) script to echo commands in form of
PsuedoCode
...
I'm running this command with the wput program and keep getting a file not transferred error.
wput c:\files ftp://username:password@ftpsite/upload
Keep getting:
Send Failed. Skipping th...
I want to create a BAT file called MAIN.BAT which is to run two other BAT files called FILE1.BAT and FILE2.BAT.
But FILE2.BAT is not to be run if FILE1.BAT aborted.
How can ...
Hello,
I'm sure there is a simple solution to this question, but for the life of me I cant think what it is.
I need to check every PC on a NT4 based domain for a specific registry value....
Hi Experts. I need to create a batch file that collects a computers IP details (IPconfig /all) and then execute a tracert command to ip address eg. 123.456.789.123 and send both these results ...
Hello Gents,
Probably easy question, but i can't an easy find solution for the command below.
Command counts files in a directory... (that works)
But would like to set it in a variable so...
I would like to know how to copy the files from a directory (including subdirectories) into a single directory. There is a list of files I would like to exclude from this process, I would also...
hi,
i want to exec a batch file from an application that i developed in access but don't want to exec it with the dos window open.
i tried to change the icon properties of the shortcut batch...
I'm trying to copy all files from ServerA to ServerB. The below code works. Except for when one of the files is in use. It doesn't indicate that in the log file. It shows a list of the fil...
Is there a command line command that will allow me to search the local C:\ for files with names greater than 256 characters?
Hello friends,
I saw two batch files....
One is DOIT.bat which contains.....
****************************
cd C:\test\
for /f %%a IN ('dir /b *.txt') do call RUNNER.bat %%~na
*******...
hi all
just a quickie for the moment
I am trying to get a friendly output on a fsutil query
Should give me a txt file with just the byte count.
cheers in advance
Hi, I like to know how i can change directory to a shared host.
Basically I want to run the grep.exe in a shared path at a command prompt of another windows server. i want to know how I can d...
OK, this is probably a really dumb question, but what is the command or commands in Windows to delete everything in a folder? I am writing a batch file that hoes out a temp directory that stor...
Hey guys and gals. A while back I asked how to put the date and time in my filenames for Windows XP and Windows Server 2008 batch files. You guys came up with the following solution.
It wo...
Dear all,
I need to set up the simplest batch routine which will delete files matching all the following criteria...
within a specified location
with the file extension .bat
more than ...