Search found 1007 matches
- 23 Apr 2013 15:14
- Forum: DOS Batch Forum
- Topic: Batch programming help - variables
- Replies: 4
- Views: 5448
Re: Batch programming help - variables
you have to make the batch create the Inbound file, so it can pass the value of "%ts%" to the file when it reads it. So your main batch do these steps: 1) calculate the time stamp. 2) Create the Inbound file, and pass the dynamic stamp while creating it. 3) Run the SFTP command. The 2nd St...
- 22 Apr 2013 12:06
- Forum: DOS Batch Forum
- Topic: disable/enable USB power & set printer as default
- Replies: 3
- Views: 6083
Re: disable/enable USB power & set printer as default
This Should install the printer you want to install. @Echo OFF SET "PrinterName=HP 200" Rem Install Printer RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "%PrinterName%" SET The Printer name in 2nd line. About the Devcon.exe, couldn't make it inside the batch, so you will need to downl...
- 22 Apr 2013 10:52
- Forum: DOS Batch Forum
- Topic: disable/enable USB power & set printer as default
- Replies: 3
- Views: 6083
Re: disable/enable USB power & set printer as default
You will have to provide the exact name of your printers as they appear, run this code and it should save the printer names in a file on your desktop, then post the names here. @Echo OFF rem Create the VBScript, if not exist ( FOR /F "tokens=1*" %%a IN ('findstr "^:printer: " ^< ...
- 22 Apr 2013 10:22
- Forum: DOS Batch Forum
- Topic: Batch file needed to copy and delete original files
- Replies: 5
- Views: 11620
Re: Batch file needed to copy and delete original files
is this location "C:\Users\ADMIN\AppData\Roaming\Microsoft\Windows\Network Shortcuts\panel" is a shortcut ?, you can't use a shortcut, provide the real full path to the network drive. This Should work, it will move files from the network drive location to the local drive location you set i...
- 20 Apr 2013 23:50
- Forum: DOS Batch Forum
- Topic: Bring window to the front.
- Replies: 2
- Views: 5007
Re: Bring window to the front.
Also, see if the application itself has option to make it stay on top, set it and when you run the application it will be on top.
- 20 Apr 2013 06:35
- Forum: DOS Batch Forum
- Topic: Problem with EnableDelayedExpansion
- Replies: 8
- Views: 7909
Re: Problem with EnableDelayedExpansion
I agree with Foxidrive, but even then the variable will hold nothing? it's empty.
if it is supposed to hold the line content then all the code should be in the first for command, or in a function that is being called from inside that for command.
if it is supposed to hold the line content then all the code should be in the first for command, or in a function that is being called from inside that for command.
- 20 Apr 2013 06:13
- Forum: DOS Batch Forum
- Topic: Problem with EnableDelayedExpansion
- Replies: 8
- Views: 7909
Re: Problem with EnableDelayedExpansions
you lost me ?
where exactly the output should be ? in the output on the cmd window or in the files ?
where exactly the output should be ? in the output on the cmd window or in the files ?
- 20 Apr 2013 06:05
- Forum: DOS Batch Forum
- Topic: Problem with EnableDelayedExpansion
- Replies: 8
- Views: 7909
Re: Problem with EnableDelayedExpansions
you have a missing argument after /c in the first for command, it should be something like this /c:"word"
- 20 Apr 2013 05:57
- Forum: DOS Batch Forum
- Topic: Move from FTP and count in Target folder automated
- Replies: 159
- Views: 89412
Re: Move from FTP and count in Target folder automated
have you tried this: starting from line 23 (in the above script) in Code.bat, add these lines: set "Rserver=%~2" set "RserverU=%~3" set "RserverP=%~4" set "Pnum=%~5" set "ftpTMP=%~9" Now Replace %~2, %~3, %~4, %~5 and %~9 in lines 43 and 87 ( lines t...
- 18 Apr 2013 17:55
- Forum: DOS Batch Forum
- Topic: Move from FTP and count in Target folder automated
- Replies: 159
- Views: 89412
Re: Move from FTP and count in Target folder automated
I think we missed this, Did you changed the FTP_SERVER column in the FTP.set from ?
Remove The "ftp."
The Error is a host related, and by using the already existing settings, it will look like this:
Toftp.domain1.com
Code: Select all
domain1.com
Remove The "ftp."
The Error is a host related, and by using the already existing settings, it will look like this:
User@ftp.domain.com
- 18 Apr 2013 03:05
- Forum: DOS Batch Forum
- Topic: Move from FTP and count in Target folder automated
- Replies: 159
- Views: 89412
Re: Move from FTP and count in Target folder automated
PSFTP not like the usual FTP, I didn't use PSFTP before so i don't have any experience in that but i made few changes based on the PSFTP help page. Start.bat @Echo OFF Title FTP Main Download Script :: IF The batch dosen't downloading your files make sure to provide full location :: of these files i...
- 15 Apr 2013 18:30
- Forum: DOS Batch Forum
- Topic: Send pause command to vlc?
- Replies: 3
- Views: 5272
Re: Send pause command to vlc?
Alos, VBscript can do that, try this code, it will open a notepad and write text in and save it in your D drive @Echo OFF ( FOR /F "tokens=1*" %%a IN ('findstr "^:write: " ^< "%~F0"') DO Echo.%%b )>"%~DP0write.vbs" Cscript //nologo "%~DP0write.vbs" E...
- 15 Apr 2013 17:31
- Forum: DOS Batch Forum
- Topic: RENAME in a LNK file
- Replies: 2
- Views: 3566
Re: RENAME in a LNK file
i'm not sure what you are trying to do, but Start Command take the first argument as a cmd window title, so you have to provide a title or an empty double-quotes instead, try this it could help: CMD /C /D START "" /D. RENAME "C:\Program Files\Common Files\Autodesk Shared\WSCommCntr4\l...
- 14 Apr 2013 02:35
- Forum: DOS Batch Forum
- Topic: copy extra files from source to target location
- Replies: 6
- Views: 5751
Re: copy extra files from source to target location
/D switch make the command copy only new files, with new modified date. /Q is for quite mode, doesn't show output on screen /V to verify copied files, to make sure they was copied alright. The for command read the Extension variable and pass each extension to the xcopy command. so any extention you ...
- 14 Apr 2013 01:42
- Forum: DOS Batch Forum
- Topic: Can I put the current PROMPT in a variable?
- Replies: 6
- Views: 5030
Re: Can I put the current PROMPT in a variable?
sorry, but what do you mean exactly ?