I have the following For loop in a batch file:
for /R c:\test\src %%i IN (*.*) DO (
MOVE %%i C:\test\destination
ECHO %%i
exit
)
The result of the ECHO outputs the entire file path Ex: C:\Foldername\Filename
I need to ECHO out only the Filename.Is there a specific command which would give me the filename ?
Thanks !
...
I am using the deltree command which expects the user to confirm with a Y or N.
I tried 'echo Y | deltree ....' but got a "The process tried to write to a nonexistent pipe" error.
Is there another way?
...
i want to automate the task of uploading of a file at FTP site "uploads.google.com"
how can i achive this
...
I'm trying to create a batch file that will run Doug Cockford's JSMin against all the .js files in a directory. Here's what i've got:
for /f %%a IN ('dir /b /s *.js') do jsmin <%%a >%%~da%%~pamin\%%~na.min%%~xa
The problem is that the angle brackets (<>) cause the batch file to interpret it as 0< and 1>. Event running just:
jsmin <s...
About 15 years ago, I used to amuse myself and annoy my CS teacher by writing bad code that would directly modify the text on the monitor. This was/is easily done by accessing video memory at 0xB8000 on VGA-equipped PC-compatibles.
Fast forward to today, I decided to try out my old trick through a debug port that gives me access to rea...
I need a command line that can check the port status on a remote host. I tried ping xxx.xxx.xxx.xxx:161 but it doesn't recognize the "host". I thought it was a "good" answer until I did the same command against a host I know has that port open. This is for a batch file on Windows that will check the status of the remote port then run...
I want to write F000:0000 ~ FFFF:0000 in real mode (DOS).
But this area is write-protected.
I tried to find datasheet of CPU and Northbridge.
But, i can't find write method of shadow ram.
My system configuraion:
M/B: ASUS P5B(965P Chipset)
CPU: Intel Pentium 4 Series
BIOS: AMI
...
How do I list files with edit locks on a network drive using a dos shell and associated tools?
I think net file has to be run on the server, and I'm looking to do this from any box on the drive.
...
i need help making a batch file in ms dos to do certain commands like
a)Request from you to first press any key
b) List the contents of the C:\WINDOWS directory
c) Create a subdirectory on one of your local drives. Use your initials to name the subdirectory.
d) Copy all the text files from C:\WINDOWS directory into the new subdirecto...
I have a set of commands like:
C:
cd Project
testproj.exe
My system gets these commands one by one from a remote system.
I need to execute each command in cmd.exe on receiving the command from the remote system. How to execute these using .NET?
I also need to return the result of testproj.exe to the remote machine. How to take the ...
I want to write a DOS batch process which will go through my Directory and move all *.txt files to a dest folder to starting with the first character of the txt files
Ex.
abc.txt will move to folder "a"
def.txt will move to folder "d"
and so on...
...
With a single-server setup for simplicity, which steps could you do to minimize the attacks of a (D)DoS attack? And is it really worth it taking these steps, considering their effectivity and impact on 'normal' users?
[EDIT] I also meant to include steps which you would need inject into your code to apply, not only IIS setup.
...
can i execute some dos like command from flex just like
attrib c:\a.txt -h.
function available in c exec(), in java Runtime.getRuntime().exec().
but in flex is there any available?
...
Hi there...
I'm currently learning Windows/DOS assembly. I'm just making a small program that adds two base 10 integers, and outputs the solution to standard output. Here is my current code:
org 100h
MOV al,5
ADD al,3
mov dx,al
mov ah,9
int 21h
ret
I'm confused as to why when that is compiled, I get the error:
error: invalid co...
I have a bunch of small PowerShell functions, each in their own file and I am trying to combine them into a larger file.
Using the low-tech approach of the DOS copy command by doing: copy /Y /A functions\*.ps1 super.ps1 works fine however where two files are joined it is inserting: 
I'm guessing it's the line break characters showin...
In a bash script, I'm using wine to call a DOS program that requires me to "Press Enter to exit". How do I do that automatically and continue with the rest of the script?
...
Is there any "lynx" like command DOS?
I want to get list of all files in a website.
Thanx.
...
To compile a java code we use the command javac FileName.java on dos. If there are lots of error in the program code,last few errors are seen only on CUI..but what about the previous one....?
I means,the screen scrolls up,because of that we are unable to visit the previous line(errors)...so how can I see them? What command will be used ?...
I'm trying to make a script that will make a copy of a folder (in Windows) every day for the last 7 days. On the 8th day I want it to take the oldest copy and overwrite it and so on and so forth so at any one time I'll have a 7 day "history" of the folder.
Now I've done that previously in Linux simply by telling a daily bash script to c...
To run the command:
cloc-1.08.exe wizardry
Obviously I don't want to go into DOS every time I want to do a line count.
...