1.

Solve : cmdstuff?

Answer»

Command | USE

msg %USERNAME% msghere sends a message to the current user.
rundll32.exe user32.dll,LockWorkStation works the same as pressing L+WinKey.
runDll32.exe powrprof.dll,SetSuspendState Make windows hibernate.
format /X the only complete way to format,reduces to zeros.
RunDll32.exe url.dll,FileProtocolHandler http:// Run An Url.
RunDll32.exe AppWiz.Cpl,NewLinkHere C:\ create a shortcut ,C:\....\... is the destination.
shutdown -a Abort a system shutdown by RPC.
DIR \Filename /B /P /S Searches Current Drive for Filename.
attrib +S +H file.exe Hide a file or directory, even when "show HIDDEN files" is ticked.

Open Hotmail Directly -
RunDll32.exe "%ProgramFiles%\Internet Explorer\hmmapi.dll",OpenInboxHandler

Remove Windows Messenger from Tray -
RunDll32.exe advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove

Run a batch file invisible -
Step 1: Create a .vbs file , containing ...
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
save your file to a directory of choice.

Step 2: type wscript.exe "c:\yourvbsfile.vbs" "yourbatfile.bat"

If you are going to run step 2 from a batch file, make sure to include cd\batfiledirectory\ above it.

Invisible Backup using Internal FTP on XP/2000

Step 1: Create a txt file containing , ftp username , ftp password , Files to be Uploaded
Example:
ftp.t35.com
Mypassword
send c:\backupfile1.cmd
send c:\backupfile2.cmd
!
Taskkill /f /im ftp.exe (to make sure ftp doesent hang up in your system because it will everytime, you run this with the invisible batch file method)

step 2: save your new file as .txt , say c:\upload.txt .. then create a new file that looks like this..
@echo off
cd\docume~1\%username%\startm~1\programs\startup\
copy c:\runuploadfile.bat (assuming the file your writing now is c:\runuploadfile.bat
cd\
del runuploadfile.bat
cd\docume~1\%username%\startm~1\programs\startup\
wscript.exe "c:\yourvbsfile.vbs" "runuploadfile.bat" (with the quotations)
quit

step 3: ok step 1 and two completed , you now have a file that runs invisibly at startup
and sends your backup files of choice to your ftp of choice. now .. you can do thing to retrive manually.
by building a similar SET of programs to retreive to your desktop.
example:
Username.ftp.com
Password
get backupfile1.cmd c:\docume~1\%username%\desktop\filebackup1.cmd
get backupfile2.cmd c:\docume~1\%username%\desktop\filebackup2.cmd
!
taskkill /f /im ftp.exe

-

ok and now my question is, how do i KEEP a batch file from firing in random order?



it wont as long as its in orderthe problem is its long and it cant be in order exactly.. i tryed seperating it and adding echo in between but it still wont work. :-?Have you tried to break it up into parts and than use "CALL" from a main bat file to run each part?



Discussion

No Comment Found