Create a script

Closed

Description

I need a script that will run on a windows computer. The script must;

Check if the logged in user has a Google Drive folder in their profile. Having this folder would indicate that the user has Google drive installed and has logged into the application.

Does

%USERPROFILE%\Google Drive

Folder exist, if yes proceed if no stop and close here.

Check if the folders exist

%USERPROFILE%\Google Drive\Documents

%USERPROFILE%\Google Drive\Desktop

%USERPROFILE%\Google Drive\Favorites

%USERPROFILE%\Google Drive\Videos

%USERPROFILE%\Google Drive\Pictures

%USERPROFILE%\Google Drive\Music

If they exist proceed if they do not exist create them all then proceed

copy all files from

%USERPROFILE%\Documents to %USERPROFILE%\Google Drive\Documents

%USERPROFILE%\Desktop to %USERPROFILE%\Google Drive\Desktop

%USERPROFILE%\Favorites to %USERPROFILE%\Google Drive\Favorites

%USERPROFILE%\Videos to %USERPROFILE%\Google Drive\Videos

%USERPROFILE%\Pictures to %USERPROFILE%\Google Drive\Pictures

%USERPROFILE%\Music to %USERPROFILE%\Google Drive\Music

Update the registry with new paths for the above locations.

Hive HKEY_CURRENT_USER

Key path Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Value name Personal

Value type REG_EXPAND_SZ

Value data %USERPROFILE%\Google Drive\Documents

Hive HKEY_CURRENT_USER

Key path Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Value name My Video

Value type REG_EXPAND_SZ

Value data %USERPROFILE%\Google Drive\Videos

Hive HKEY_CURRENT_USER

Key path Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Value name My Pictures

Value type REG_EXPAND_SZ

Value data %USERPROFILE%\Google Drive\Pictures

Hive HKEY_CURRENT_USER

Key path Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Value name My Music

Value type REG_EXPAND_SZ

Value data %USERPROFILE%\Google Drive\Music

Hive HKEY_CURRENT_USER

Key path Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Value name Favorites

Value type REG_EXPAND_SZ

Value data %USERPROFILE%\Google Drive\Favorites

Hive HKEY_CURRENT_USER

Key path Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Value name Desktop

Value type REG_EXPAND_SZ

Value data %USERPROFILE%\Google Drive\Desktop

Rename the following folders

%USERPROFILE%\Documents to %USERPROFILE%\Old Documents

%USERPROFILE%\Desktop to %USERPROFILE%\Old Desktop

%USERPROFILE%\Favorites to %USERPROFILE%\Old Favorites

%USERPROFILE%\Videos to %USERPROFILE%\Old Videos

%USERPROFILE%\Pictures to %USERPROFILE%\Old Pictures

%USERPROFILE%\Music to %USERPROFILE%\Old Music

end

Skills: PHP, Software Architecture

See more: run shell script from php, create shell script, hive, php script rename files, php google drive, create script windows, script google drive, drive script, windows shell explorer, create files folders, windows script shell, rename computer, windows profile update, copy windows user profile, copy registry, create video script, google drive php, windows explorer shell, explorer shell, create user folders script, windows shell script, folder copy php script, script create user windows, windows create script, registry hive

Project ID: #6250012

Awarded to:

Blackhatwarrior

A proposal has not yet been provided

$150 USD in 3 days
(30 Reviews)
4.9

6 freelancers are bidding on average $149 for this job

samarthsol

Here is the solution....Please reply so we can start asap. waiting for your reply. Kind Regards samarthsol

$133 USD in 3 days
(17 Reviews)
4.3
johnbenz

Dear Sir, I am a Professional Programmer since 2008, I have many programs developed and successfully finished in my past employer, I am expert in IT Industry both Hardware, Software and Web Programming, I will give More

$150 USD in 3 days
(5 Reviews)
3.6
sovenkoaavenkoaa

Предложение еще не подано

$160 USD in 3 days
(3 Reviews)
2.6
vlancerv

i read your requirment and i can do these project. Word press http://royalimageny.com/first/ http://jobconnectionllc.com/ http://grandcaymanresidences.com/ http://lezasolutions.com/ http://bloomfieldnails.com More

$189 USD in 7 days
(4 Reviews)
2.0
sardarms

http://revelinit.com.au/ (Multi-seller E-commerce web portal. PayPal Payment gateway) http://mylisting365.com/ (Real Estate Listing, Oodle API Integration, Trovit feed XML generation) http://intercon.in/ (jQuery More

$211 USD in 8 days
(2 Reviews)
1.7
senet

I have gone through the project description. I can make batch files, which will perform the tasks at the time of logon. I have 6.8 Years of Corporate proven experience in IT Infrastructure Services and I have worked More

$50 USD in 1 day
(1 Review)
1.8