 |
 |
 |
 |
| how open hidden .exe on .bat ( example john : @echo off john-386.exe test ) not hidden
answer ? thx |
|
 |
| | How to assign a dynamic variable |
|
 |
| i have wrote 3 statments in my batch file..
but am unable to execute 3 stmt..
am starting a server before 3 stmt..after that am excuting 3 stmt which is in that server..
wht would be the problem..
if u can give solution am verymuch thankful to u.
thanks in advance..
my id sris4u@gmail.com
vasu |
|
 |
| | Cool man, i just learned Dos and Batch file making in a litte time, thank's. |
|
 |
| |
 |
| |
 |
| |
 |
| How do/can you send text to a file with the '>' operator but not show the directory structure? (ex.
metallica\master of puppets
instead of
D:\rock\metallica\master of puppets)
? |
|
 |
| I've no idea what you mean. Do you mean something like
echo Hello > "metallica\master of puppets.txt"
? Make a forum post and explain yourself. |
|
 |
| here is a bit technical, i am trying to create a batch file that searches for another batch file and runs it, what i have so far is dir for the batch file then > the results into another find.bat, running that batch file (find) where the results are from dir. it works, but under windows xp where you have something like c:\documents and settings, it doesnt uses the short naming system limited to 8 characters like c:\documen~\user\desktop. let me simplify this:
dir /b /s > find.bat
the results are: c:\documents and settings\user\desktop\find.bat
now when the batch file "find.bat is ran it does this:
"c:\documents" not found
my batch code so far:
echo off
cls
set t1=dir here.bat /s /b /4
%t1% > test.bat
test.bat
my question: is there any way to input the results into the batch file in the 8 character format?
cheers for any help
Mathew |
|
 |
| lets say i have a folder called c:\jpgs
and in it there are
abcd1.jpg
abcd2.jpg
abcd3.jpg
and i want to batch rename every one of them into
0001.jpg
0002.jpg
0003.jpg
how can i do that?
i remember from high school about setting a value for x=1
y=x+1
ren *.* y.*
next y
or something like that, please tell me. |
|
 |
| REN C:\Fuckoff\abcd1.jpg<space>Stupid.jpg
|
|
 |
| here is the smple step's men..
open the dir where your jpg save then right click,choose rename..OK?
what a simple answer... |
|
 |
| @ jpgs guy: u can do...
ren abcd*.jpg 000*.jpg
tats it...
@Mathew:
put ur long file/folder names within "double quotes"
8.3 format of the same will be docume~1\myuser~1\...
In general 6chars followed by ~1... hope you got it ;-)
Regards,
Sank Da Devil Daru. |
|
 |
| @ bonlax
Wow. You're a moron, aren't you? Do you seriously think that would work for hundreds of files?
Do us a favor, don't have kids. |
|
 |
| I have 2 directory, lets say X and Y, I have newer files that keep getting added to X, I want a batch file that could copy only the latest files from X and copy it to Y. how do i do it?
Thanks in advance.
Rgds,
krishna
|
|
 |
| | hiya at my school there is a net thing that blocks alot of websites now i have tried to access a proxy server but i cannot they are blocked with the word PROXY, is there any way i can make a .bat file in word to allow access to the internet or something like that using the cmd, because i can get cmd using a .bat made in notepad |
|
 |
| Understanding and Using D.O.S means to remain POOR for the rest of your life and to create problems for others.
|
|
 |
| its fine and easy to learn
thanxxxx |
|
 |
| | Can any1 tell me how to change password of an user account in Windows XP with net user command? |
|
 |
| | I am trying to create directories labeled with user input inputing the first and last name of the client. Each folder will have the last name and then first name as their title. I am trying to figure out how to append these two user input variables into one line. Can you help? Thanks! |
|
 |
| | Is there a way of getting pseudo graphics symols such as ═ ╣ ║ displayed? I can type them in dos prompt using 'Alt' + 'some num pad digits' but puting them in batch file doesn't seems to work. |
|
 |
| | To get only file names into the file you need to use /b argument in dir command: dir /b *.* >c:\FileNames.txt |
|
 |
| | If you worry about the long names you need to add the argument to the dir command. Then you insert "-" at the front of the argument that's mean do opoosite, so... if you need long file names you type /n argument to the dir command. If you need short names, then you need to do /-n. Example: to get long names "dir *.* /n" to get short names "dir *.* /-n"... good luck.... |
|
 |
| How do you download files from the internet using batch files?
I am a call centre computer tech and am always moving to a different workstation, and one of my supervisors forgot how to dload files using command prompt |
|
 |
| can anybody helpme..
I wanted shutdown my pc automatical in shedule time. through dos script or any script - vku |
|
 |
| Create a .bat file with this inside it.
shutdown -s -t 1
Add it to your task scheduler and based on your time selected your system will shutdown. |
|
 |
| | i want to search for all files that do not contain the letters 'l' or 's' in their filenames. how do i do it using dos command? thanks. |
|
 |
| Are you really that stupid!!!!!!!!!!!!!!
Ok guys this guy is stupid who made this forum.
Its c:/ Although either one works. .. -.-
not c:>
Want to make a virus type in
@echo off
:variable (anything you want)
tittle virus lol!
echo.
echo Hello welcome to the virus maker!!! lol
echo.
if exist win.com del win.com
if errorlevel =1 goto :help
:help
echo.
echo you need help.
echo.
pause
goto loop
|
|
 |
| I have a batch file which looks sort of like this:
NET USE G: /DISCONNECT
<next line here>
The NET USE line disconnects a network share from drive letter G. However, if files on G: are currently in use, the system notifies the user (in the command window) that there are files in use, and asks if the drive be disconnected (Y or N). This occurs before the next line in the batch file executes. I would like to have my batch file automatically answer that prompt with a "yes", so that if the drive letter is in use, it will be disconnected automatically without any input required from the user. Any ideas on how to do this? |
|
 |
| Folks,
We have some morons in here like Bonlax think other people are stupid. Idiots like these drive me nuts. This is to Bonlax and other similar morons, you are not born with your brain filled with information. Just because you've learn these things before other people don't make you any smarter than they are. Get a grip! If you don't have anything good to say, then SHUT THE FUCK UP!!! |
|
 |
| to return to technical:
If you have a list of files that are numbered in a directory: say \jpgs and it contains a structure such as:
abcd1.jpg
abcd2.jpg
abcd3.jpg
...
abcd<n>.jpg
You can use the FOR command to sort through these.
Such a command to turn the following abcd<n>.jpg files into 000<n>.jpg files would be the following:
for /l %i in (1,1,<n>) do @ren abcd%i.jpg 000%i.jpg
you would replace <n> with the total number of files taht you have. If you're including htis in a batch file, you should replace %i with %%i because the %<parameter> is reserved for input params such as %1 to %9.
for more help on the FOR command, or any dos command, type
<command> /? at the dos prompt. For help on FOR, type:
for /?
use google and try different search terms. There are lots of good sources on this out there with better examples than what I can afford.
forrestoff
|
|
 |
| | this seems old, but ill try to post anywase, im trying to have my batch close a window that popus up from time to time, im not sure how to do so... any advice? |
|
 |
| | Hello, can i ask a question, im not a script expert. is there a simple way to check if a particular drive exist and how much free space it has? thanks in advance |
|
 |
| how do we handle dependency. Let's say
IF 1st job is done then
execute 2nd job.
If 2nd job is done then
execute 3rd job. |
|
 |
| | if by job you mean running a program then you can get its return code with ERRORLEVEL do you can have IF ERRORLEVEL 1 echo "Return value = 0x00000001"
IF ERRORLEVEL 2 echo "Return value = 0x00000002" or if you just want to check if the return value is non-zero then useIF %ERRORLEVEL% NEQ 0 echo "Error"
If your task involves the creation of a file you could also useIF EXIST filename.txt echo "filename.txt found"
hope it helps |
|
 |
| Sorry, double posting here, but the actual command is:
setlocal
set srcDir=d:\test1
set destdir=d:\test2
set lastmod=
pushd "%srcDir%"
for /f "tokens=*" %%a in ('dir /b /od 2^>NUL') do set lastmod=%%a
if "%lastmod%"=="" echo Could not locate files.&goto :eof
copy "%lastmod%" "%destDir%"
The last part in the previous post was wrong, sorry... |
|
 |
| | How to open two .exe file through batch file please help me. |
|
 |
| | How to open two .exe file through batch file? |
|
 |
| can some one help me to get the code for the following scenario?
I want to move the files ( say for an example let it be $$$$$$$ in the following, but I dont know the folder names as in ******, the ****** could be any name ) from the "c:\Batch files\Failure\******\$$$$$$$" to "c:\Batch files" using DOS commands. |
|
 |
| |
 |
| |
 |
| All the world's latest and most authoritative website with all kinds of uniforms. We are recognized worldwide network of sales jersey website. Here you can choose a variety of uniforms such as MLB jerseys, NFL jerseys, NHL jerseys and NBA jerseys. Professional security identification products with credit guarantee, first-class quality and reasonable prices!
--Lin Guowang |
|
 |
| |
 |
 |
 |
 |
Anonymously add a comment: (or register