468,249 Members | 1,513 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,249 developers. It's quick & easy.

Autorun.inf using bat commands or?

Chrisjc
375 256MB
Good evening,

I am trying to figure out a way where once I connect a removable hard drive with in the “Autorun.inf” file I would like it to do the following.

Check to see which “Server it is connected too” so I was thinking

If “Not sure what check would be” “Server Name”
If “Not sure what check would be” “Server Name”
Etc etc… so lets say one of the if’s come back with = TRUE for “We will use SRV01”

If srv01
Copy “C:\Location\backup\backup.bkf” “To the removable drive” “B:\Location name\”

So basicly once the hard drive got plugged into the server, it would autorun the .inf file and id like to configure the file so it knows to look for the server name, if it is “That server” to run a “COPY” command from the local hard drive of the server to the removable hard drive that just got plugged in.

Is this possible? I was looking over some commands with .inf and I believe using

UseAutoPlay=1
&
shellexecute=copy.bat –

“So the inf would actually just open a .bat file located on its own drive and the bat file would do the “Server checking” and “Copy command”

Any insight or help on which command or if this is even possible would be greatly appreciated.

P.S. I am sorry if I posted this in the wrong thread.

Thank you,

Chris
Jan 6 '11 #1
0 1591

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Joe Cool | last post: by
5 posts views Thread by Doogie | last post: by
2 posts views Thread by tmWin | last post: by
1 post views Thread by furqanms | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.