hi everyone im making a mistake in my vb project it use cmd commands
the code of the cmd looks like this
copy /b "c:\file.jpg" + "c:\file.rar" "c:\new.jpg"
how to use it now on my vb when
file.jpg is text1 and file.rar is text2 and new.jpg is text3 on the command buttom the code should execute
i tryed somthing like this
shell "copy /b" & " " & """ & "c:\" & text1.text & ".jpg" & """ etc etc etc can some help me pls :D
Can somone help me with this project
Started by kresh7, Dec 07 2007 07:14 AM
7 replies to this topic
#1
Posted 07 December 2007 - 07:14 AM
|
|
|
#2
Posted 07 December 2007 - 08:28 AM
create a bat file from that code and then execute the bat
#3
Posted 07 December 2007 - 09:55 AM
no i want to use the shell command but im making something wrong it doesent work the code that you see isent compled
i want to insert it to a command button and when the button gets klicked it execute the command with text1 text2 text3 :D
i want to insert it to a command button and when the button gets klicked it execute the command with text1 text2 text3 :D
#4
Posted 07 December 2007 - 10:08 AM
it's gonna be a problem because copy is a shell command and not a file, so it says file not found.
#5
Posted 08 December 2007 - 08:58 AM
yes i know but i know that i can use batch commands when i use shell example shell "shutdown -s -t 60"
i need that to the problem is im making some mistakes cuz theres a lot & like you see
i need that to the problem is im making some mistakes cuz theres a lot & like you see
#6
Posted 08 December 2007 - 02:27 PM
You know why that works? Because in the system32 folder there is a file named shutdown.exe, if there wasn't that file that command would not execute like the copy command!
#7
Posted 09 December 2007 - 10:05 AM
So do you mean i cant use that command even if its a batch command ?
#8
Posted 09 December 2007 - 11:07 AM
You can create a batch file using VisualBasic and then execute it. But you cannot run that command directly using the shell command.


Sign In
Create Account


Back to top









